emacs-orgmode
[Top][All Lists]

[O] Tables with multicolumn in LaTeX export

 From: Suvayu Ali Subject: [O] Tables with multicolumn in LaTeX export Date: Tue, 25 Aug 2015 16:38:43 +0200 User-agent: Mutt/1.5.23.1 (2014-03-12)

Hi,

I was wondering if it is possible to have multicolumn when exporting
tables to LaTeX.  Something like the following:

|                |        | ∈ (5300,5800) |        | ∈ (5320,5420) | <- row
with multicolumn
| classifier     | signal |        combi. | signal |        combi. |
|----------------+--------+---------------+--------+---------------|
| old BDT > 0.3  |  70347 |         10885 |  68502 |          4021 |
| BDT v1 > -0.08 |  68458 |         20310 |  66683 |          5853 |
| BDT v1 > -0.09 |  69418 |         22329 |  67617 |          6431 |
| BDT v1 > -0.12 |  71336 |         28674 |  69479 |          8160 |

to

\begin{tabular}{lrrrr}
&  \multicolumn{2}{c}{∈ (5300,5800)} &  \multicolumn{2}{c}{∈ (5320,5420)}\\
classifier     & signal & combi. & signal & combi.\\
\hline
old BDT > 0.3  & 70347  & 10885  & 68502  & 4021\\
BDT v1 > -0.08 & 68458  & 20310  & 66683  & 5853\\
BDT v1 > -0.09 & 69418  & 22329  & 67617  & 6431\\
BDT v1 > -0.12 & 71336  & 28674  & 69479  & 8160\\
\end{tabular}

I am not too keen on using table.el as it uses too many lines, I would
like it to be minimal (tiny screenshot attached).  Maybe there is a
hack?  I'm not familiar with all the possibilities available via
#+attr_latex properties.  Thanks for any ideas.

Cheers,

--
Suvayu

Open source is the future. It sets us free.


table.png
Description: PNG image