emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jsj <jsj.register@gmail.com>
To: "Clément Pit--Claudel" <clement.pit@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: table alignment with org-pretty-entities turned on
Date: Wed, 31 Aug 2016 10:14:57 -0700	[thread overview]
Message-ID: <0EB461EC-CFAD-4BA0-AB02-E13954025F2E@gmail.com> (raw)
In-Reply-To: <9dfe6e36-805d-3e2b-11bf-41ae5f5b8b02@gmail.com>

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

Hi,


> On 2016年8月31日, at 07:44, Clément Pit--Claudel <clement.pit@gmail.com> wrote:
> 
> I'm not sure I understand the problem description. Turning on prettification does breaks table alignment; thus, 
> 
> | a      | b | c |
> |--------+---+---|
> | \alpha |   |   |
> 
> is always displayed as 
> 
> | a      | b | c |
> |--------+---+---|
> | α |   |   |
> 
> I can indeed reproduce this; one way to prevent it from happening would be to prettify "\alpha" as "α     “.

This is the same as my experience, and it makes sense because turning on prettification does not take care of the alignment. The problem I have is exactly related to what you described below, i.e. the table alignment after a realignment.

> On the other hand, realigning the table (by pressing tab in a cell) produces the expected alignment:
> 
> | a | b | c |
> |---+---+---|
> | α |   |   |
> 

I have a different experience for this.
In my case, after a realignment (by pressing TAB or C-c C-c), I got 

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

instead of 

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

It looks like that a greek letter is considered to be a double-wide symbol but displayed as a single-wide one.

> which in turn looks wrong when prettification is disabled:
> 
> | a | b | c |
> |---+---+---|
> | \alpha |   |   |
> 
> Does this match your experience? If so, I don't think it's a bug, as much as a limitation of prettification.
> 
> Clément.

This is surprising as I can reproduce the issue with a clean init file.
Btw, I am using org-plus-contrib package (20160822) with emacs 25.1.50 on a mac (10.11.6).

Jiang



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

  reply	other threads:[~2016-08-31 17:15 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
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 [this message]
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=0EB461EC-CFAD-4BA0-AB02-E13954025F2E@gmail.com \
    --to=jsj.register@gmail.com \
    --cc=clement.pit@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).