emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (Feature Request) have org-edit-special work inside non-environment


From: Nicolas Goaziou
Subject: Re: (Feature Request) have org-edit-special work inside non-environment LaTeX blocks, i.e. \( \) and \[ \]
Date: Mon, 25 May 2020 12:09:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

TEC <address@hidden> writes:

> Nicolas Goaziou <address@hidden> writes:
>> LaTeX fragments should not break paragraphs, or tables. So you need to
>> prevent inserting blank lines, or even newlines characters in the case
>> of tables.
>
> I don’t think we need to worry about newlines, 

We need to.

  | some  | table    |
  | LaTeX | $1 + 1$  |

Here, when editing "$1 + 1$", you certainly don't want to insert
a newline character.

Likewise

  Some $1+1$ paragraph

is very different from

  Some $1+

  1$ paragraph

> Another query from me, with something like a blank line, why is a user-error
> raised? Surely just strip blank lines from the buffer? I can’t think of any
> situation where this would be undesirable.

Some blank lines are meaningful in Org, so removing them could change
the structure of the input. I wasn't sure it was a good idea to do this
on user's behalf. 

The code should also prevent footnote definitions to contain two
consecutive blank lines. But that's another story.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]