Hi Ihor,
I think you are missing an email I sent after this...
On 21/11/26 19:57, Ihor Radchenko wrote:
"Pedro A. Aranda" <[email protected]> writes:
...
(`inline (format "\\(%s\\)" contents))
+ (`math-star contents)
If you drop math* from `org-latex--wrap-latex-matrices', it will be
equivalent to the original
(table ...)
(table ...)
AS said, you have missed the last email. In its final version, I'm
wrapping everything in {}.
Previously, I was "just" catering to the fact that 'align' and 'align*
are matrices that must not be wrapped, but that are matrices of
mathematical expressions nonetheless.
except that you also drop erasing #+name and #+caption
(org-element-put-property table :name nil)
(org-element-put-property table :caption nil)
done in `org-latex--wrap-latex-matrices'.
Yes, because that would go in an outer environment in documents. In
presentations, mainly with ltx-talk, that's not needed.
Or do I miss something?
Basically the last email. In the final version, I'm wrapping the math*
tables in
{
}
to support :math-prefix and other attributes. For example:
#+attr_latex: :mode math* :environment align
#+attr_latex: :math-prefix \addtolength{\jot}{6pt
| f(x) | = (x+1)^2 |
| | = x^2 + 2*x + 1 |
will be translated into
{
\addtolength{\jot}{6pt}\begin{align*}
f(x) & = (x+1)^2 \\
& = x^2 + 2*x + 1
\end{align*}
}
which is exactly what you need to show an aligned set of equations in an
ltx-talk presentation, with an extra spacing to make them more readable.
To go back to the dropping of :name and :caption, yes, I do drop them,
because these environments don't support them.
Best, /PA
--
Pedro A. Aranda
ox-latex & ox-beamer maintainer
Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
IA: onomatopeya del rebuzno
2nd year of the New Koprocracy