7

I am trying to achieve multicolumn cells in org-mode tables like in Multicolumn cells in org-mode tables, but with Latex inside the cells.

  * Minimal Example
  +------------+-----------+--------------+
  |            |           \pi            |
  |            +-------------+------------+
  |            |$\pi$        |            |
  +------------+----+--------+------+-----+

I found https://orgmode.org/manual/Tables-in-LaTeX-export.html and tried

  #+ATTR_LATEX: :mode math 

and

  #+ATTR_LATEX: :mode math-inline

but no success.

The exported tex in the tex file is

    $\backslash$pi
    \$$\backslash$pi\$.

Can I protect the string in the cell? Is it possible?

1
  • Unfortunately, Org mode treats table.el tables as black boxes: it does not look inside them and in particular, it does not do the translation to LaTeX. That is done by a table.el function called table-generate-source which can translate the table into a number of languages (including html and LaTeX) but it has limitations. In particular, it escapes \ and $ indiscriminately, so it seems it cannot handle math mode at all.
    – NickD
    May 30, 2020 at 3:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.