Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Hello,
>
> Rasmus <ras...@gmx.us> writes:
>
>>>> Another danger is that someone writes something like,
>>>>
>>>>     \begin{center}
>>>>     \begin{table}
>>>>     ...
>>>
>>> You can start the regexp with "\\`[ \t]*..."
>>
>> The point is, that the env. will be center rather than table.  So the code
>> would detect the wrong environment.
>
> But in this case, the caption is ambiguous anyway. Therefore, I see
> nothing wrong here.

I pushed a simplified version that doesn't consider
org-latex-custom-lang-environments.  If anyone ever needs that we can add
it.  I expect it’s mainly useful for tables and images anyway.

Let me know if there’s any problems.

Rasmus

-- 
Warning: Everything saved will be lost

Reply via email to