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?
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 atable.el
function calledtable-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.