emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jsj <jsj.register@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: table alignment with org-pretty-entities turned on
Date: Tue, 30 Aug 2016 11:12:36 -0700	[thread overview]
Message-ID: <63868C53-DB47-4854-BBCC-20B2FC7A0397@gmail.com> (raw)
In-Reply-To: <B685890F-4AA2-4D7C-8220-869FAD76B7F2@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

To make it clear, the behavior I reported can be reproduced with a clean init file with just org loaded.

I put the table

| a      | b | c |
|--------+---+---|
| \alpha |   |   |

in an org file, toggle pretty entities by C-c C-x \, then C-c C-c to realign the table. The result I get is

| a  | b | c |
|----+---+---|
| α |   |   |


If I try the same thing for 

| a            | b | c |
|--------------+---+---|
| \alpha \beta |   |   |

I get

| a     | b | c |
|-------+---+---|
| α β |   |   |

Is it just me or you can reproduce the same behavior?

Regards,
Jiang

> On 2016年8月28日, at 12:37, jsj <jsj.register@gmail.com> wrote:
> 
> Hi,
> 
> I am using the latest org-plus-contrib package (20160822) with emacs 25.1.50.
> 
> I turned org-pretty-entities on in my init.el. When there are prettified letters displayed in an org table, the alignment of the table seems to be messed up.  The deviation is related to the number of prettified symbols.
> 
> For example,
> 
> | a      | b | c |
> |--------+---+---|
> | \alpha |   |   |
> 
> is displayed as
> 
> | a  | b | c |
> |----+---+---|
> | α |   |   |
> 
> while 
> 
> | a            | b | c |
> |--------------+---+---|
> | \alpha \beta |   |   |
> 
> is prettified as
> 
> | a     | b | c |
> |-------+---+---|
> | α β |   |   |
> 
> I am wondering whether I miss anything. It would be great to have aligned tables with prettified symbols.
> 
> Thank you!
> 
> Best regards,
> Jiang


[-- Attachment #2: Type: text/html, Size: 5241 bytes --]

  reply	other threads:[~2016-08-30 18:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-28 19:37 table alignment with org-pretty-entities turned on jsj
2016-08-30 18:12 ` jsj [this message]
2016-09-06  6:06   ` Nicolas Goaziou
2016-09-07  2:36     ` s j
     [not found] ` <24054f3d55784e3b905a958604b45a33@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-08-31  8:25   ` Eric S Fraga
2016-08-31 14:44     ` Clément Pit--Claudel
2016-08-31 17:14       ` jsj
2016-08-31 21:34     ` jsj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63868C53-DB47-4854-BBCC-20B2FC7A0397@gmail.com \
    --to=jsj.register@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).