From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Tables with multicolumn in LaTeX export Date: Tue, 25 Aug 2015 16:13:40 +0100 Message-ID: <87wpwj7657.fsf@ucl.ac.uk> References: <20150825143843.GJ31789@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUFv3-0006pc-6K for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 11:13:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUFuz-0001d2-4p for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 11:13:49 -0400 Received: from mail-am1on0141.outbound.protection.outlook.com ([157.56.112.141]:14656 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUFuy-0001ck-TK for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 11:13:45 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs Org mode On Tuesday, 25 Aug 2015 at 16:38, Suvayu Ali wrote: > Hi, > > I was wondering if it is possible to have multicolumn when exporting > tables to LaTeX. Something like the following: > > | | | =E2=88=88 (5300,5800) | | =E2=88=88 (5320,5420) | <- row with multi= column > | 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 | A kludge but you can use @@latex:...@@ in the table headings to achieve what you want. Not pretty, mind you, and to avoid multiple \cr being created for the extra rows on the first line, this will only work if the last column is part of a multicolumn. #+begin_src org ,* table with multiple column spanning | | @@latex:\multicolumn{2}{c}{@@\in (5300,5800)@@latex:}@= @ | @@latex:\multicolumn{2}{c}{@@ \in (5320,5420) @@latex:} \\%@@ | = | | | | <10> | <10> | | | | 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 | #+end_src Note the \\% in the end of the last multi-column directive. HTH, eric --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec