"Pedro A. Aranda" <[email protected]> writes:

> A small patch attached to fix the compilation of the following org table 
> with latex:
>
> #+attr_latex: :mode math :environment align*
> | f(x) = | x^3 + 3*x^2 + 3*x + 1   |
> | =      | (x^2 + 2*x + 1) * (x+1) |
>
> align* (and align) don't like to be embedded in \[\] or \(\)
>
> I would push this right now, but I don't want to interfere with the 
> org-latex-preview process. It'll appear in the unmerged fontspec branch 
> shortly.
> +(defun org-latex--maybe-escape-matrix (fmt contents)
> +  "Escape CONTENTS using FMT, expect for the align and align* environments.
> +Remove the space between the equal sign and the column mark (&) at the
> +end of a cell for these environments."
> +  (if (string-match-p "\\\\begin{align\\*?}" contents)
> +      (string-replace
> +       "= &" "=&" contents)
> +    (format fmt contents)))

Could you explain more about = & -> =& replacement? What is the purpose?


-- 
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