On Tue, Apr 15 2025, Rudolf Adamkovič <rud...@adamkovic.org> wrote:

> Leo Butler <leo.but...@umanitoba.ca> writes:
>
>> Alternatively, why not fix Karthik's stated problem with some analogue
>> to `org-insert-structure-template'? E.g. `org-insert-latex-environment'.
>
> This would be a nice addition in general, IMO.
>
>> It would insert a latex environment, after prompting for the name, or
>> update the environment name if called with a region that started with
>> \begin{FOO} and ended with \end{FOO}.
>
> Environments are often nested, so when called with a region, it should
> wrap the existing environment, IMO.

This is a matter of choosing a default versus optional action (replace
vs wrap).

I wonder, too, if these should be optional actions for
`org-insert-structure-template'?

Leo

Reply via email to