"Pedro A. Aranda" <[email protected]> writes: > 4. Part of the wrapping magic is done in > (org-latex--wrap-latex-matrices). For our purpose, math* behaves like > inline-math, but has an "empty wrapping" as opposed to being wrapped > into a "\(" "\)" [1]. Therefore, it's here that I set the :markup to > 'math-star'. > > 5. I consume the :markup in (org-latex-matrices) by returning the > unmodified contents. If align or align* needed a specific wrapping, it > would be here that I'd add it, just like the `inline or the _ case in > the function (_ standing for `math).
Could you elaborate a bit more? AFAIU, `org-latex--wrap-latex-matrices' transforms (table ...) (table ...) into (matrices :contents (table ...) (table ...)) and then in `org-latex-matrices' you simply say "ignore matrices, just leave CONTENTS" > (`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 ...) 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'. Or do I miss something? -- 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>
