Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:
That would be undesirable. LaTeX fragments (inline type) and
LaTeX environments (block type) are different beasts. This is
clearly outside the scope of `org-edit-special' to move from one
type to the other.
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.
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.
Lastly, I feel like it may be a good idea to give some example
-----
inline → inline
::INITIAL
\(\epsilon_0 = \binom{n}{b} \sqrt{\alpha_2 + \frac{\partial
z}{\partial x \partial y}} ... \)g
::CHANGE INLINE STYLE
\[\epsilon_0 = \binom{n}{b} \sqrt{\alpha_2 + \frac{\partial
z}{\partial x \partial y}} ... \]
::END
inline → environment
::INITIAL
\[
\alpha = \psi(0) \quad \beta = \psi(1) \quad \gamma = \psi(2)
\]
::CHANGE STYLE
\begin{align*}
\alpha &= \psi(0) \\ \beta &= \psi(1) \\ \psi &= \psi(2)
\end{align*}
::END
-----
However this ends up being implemented, I think it would be good
not to prevent the user from making these changes in the pop-up
edit buffer.
This is clearly outside the scope of `org-edit-special' to move
from one type to the other.
To be honest I don't quite see this point, in both cases it's just a LaTeX
buffer...