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 


  #+ATTR_LATEX: :mode math-inline

but no success.

The exported tex in the tex file is


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

  • 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 at 3:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.