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 13:27:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

TEC <address@hidden> writes:

> <#multipart type=alternative><#part type=text/plain>

Please don't send HTML.

> Inline LaTeX, and Environments are indeed different. I failed to consider that
> there may be additional complications if switching an inline environment to an
> environment. Quite frankly I’m not too sure how org handles an environment in
> the middle of a line. I’ll do some quick tests.

You cannot have an environment in the middle of a line.

> I was also referring to \( \) → \[ \] (inline to inline) as something one 
> could
> well want to change, in which case I don’t think this is a concern.

Yes, this particular change would be harmless. But you don't need
`org-edit-special' to change that. Moreover you cannot allow this
without allowing any change. So, let's not do that.

> To be honest I don’t quite see this point, in both cases it’s just
> a LaTeX buffer…

No, it's not. It is a part of an Org document that happens to be handled
by LaTeX. IOW, there is context around the object that doesn't belong to
LaTeX.

`org-edit-special' focuses on contents, not structure. For example, you
cannot change the number of the footnote definition being edited from
`org-edit-special'. This should also be the case here.



reply via email to

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