From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Tables with multicolumn in LaTeX export Date: Tue, 25 Aug 2015 18:14:45 +0200 Message-ID: <20150825161445.GL31789@chitra.no-ip.org> References: <20150825143843.GJ31789@chitra.no-ip.org> <87wpwj7657.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUGs5-00059N-TM for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 12:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUGs5-0004aS-0Y for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 12:14:49 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:37239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUGs4-0004Zp-Pd for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 12:14:48 -0400 Received: by widdq5 with SMTP id dq5so19727008wid.0 for ; Tue, 25 Aug 2015 09:14:48 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by smtp.gmail.com with ESMTPSA id wx9sm27799930wjb.6.2015.08.25.09.14.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 09:14:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87wpwj7657.fsf@ucl.ac.uk> 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-orgmode@gnu.org Hi Eric, On Tue, Aug 25, 2015 at 04:13:40PM +0100, Eric S Fraga wrote: > On Tuesday, 25 Aug 2015 at 16:38, Suvayu Ali wrote: > > > > 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 [...] > 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:} \\%@@ | | | This is very clever and works nicely :). Thank you! -- Suvayu Open source is the future. It sets us free.