Hi

align and align* are environments, not modes… I’ll look at it again, but I 
can’t follow your reasoning. 
Have you taken a look at the test case? This might also help you understand the 
implications…
Best,/PA
Enviado desde mi iPhone

> El 14 nov 2026, a las 18:19, Ihor Radchenko <[email protected]> escribió:
> 
> "Pedro A. Aranda" <[email protected]> writes:
> 
>> Attached is a patch to allow the 'align' and 'align*' environments for
>> aligned tables.
> 
> Thanks!
> 
>>   For =math= or =inline-math= mode, LaTeX export backend wraps the
>>   table in a math environment, but every cell in it is exported as-is.
>> -  For =tabbing= the LaTeX tabbing environment is used and the correct
>> -  tabbing delimiters =\>= are used.
>> -  The LaTeX export backend determines the default mode from
>> +  The =math*= mode behaves like similarly, but without wrapping the
>> +  table in any sort of math environment[fn::This should be used for
>> +  the =align=, =align*= or other environments, where inlining results
>> +  in a LaTeX error.].  For =tabbing= the LaTeX tabbing environment is
>> +  used and the correct tabbing delimiters =\>= are used.  The LaTeX
>> +  export backend determines the default mode from
>>   ~org-latex-default-table-mode~.  The LaTeX export backend merges
>>   contiguous tables in the same mode into a single environment.
> 
> My understanding is that the purpose of math and inline-math is grouping
> subsequent tables together under the same \[...\] or \(...\) umbrella:
> 
> \[
> <table 1>
> <table 2 with caption and name stripped>
> <table 3 with caption and name stripped>
> ...
> \]
> 
> I come to this conclusion when reading the code in
> `org-latex--wrap-latex-matrices'.
> 
> However, in the proposed math* mode, that extra stripping of captions
> and table names does not seem reasonable.
> 
> Looking at `org-latex-table', I see that we already have
> :mode verbatim and :mode tabbing for special handling of text inside table.
> 
> May we simply have :mode align and :mode align* working the same way?
> 
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>

Reply via email to