From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: orgtbl multicolumn support Date: Fri, 06 May 2011 22:05:25 +0300 Message-ID: <4dc44678.41cad80a.776f.ffffc00e@mx.google.com> References: <4dc3097d.cac3e30a.5b1f.ffff9c8f@mx.google.com> <4dc30b66.cac3e30a.2d35.ffff9c04@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIQLH-0000Y2-D2 for emacs-orgmode@gnu.org; Fri, 06 May 2011 15:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIQLD-00037E-2a for emacs-orgmode@gnu.org; Fri, 06 May 2011 15:05:35 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIQLC-00034p-Dz for emacs-orgmode@gnu.org; Fri, 06 May 2011 15:05:30 -0400 Received: by wyf19 with SMTP id 19so3269139wyf.0 for ; Fri, 06 May 2011 12:05:29 -0700 (PDT) In-Reply-To: <4dc30b66.cac3e30a.2d35.ffff9c04@mx.google.com> (Michael Bach's message of "Thu, 05 May 2011 23:41:06 +0300") 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 Michael Bach writes: What kind of evil, sleep-deprived line of thoughts took me when I wrote this? Must have been too late for anything remotely meaningful. This one clearly did not deserve any answer... Sorry for the noise > Michael Bach writes: > > # edit > >> Dear org-mode Users and Developers, > >> I just wanted to know whether there are plans to support multicolumns in >> default orgtbl-to-latex. Something along these lines: >> >> #+ORGTBL: SEND multicol orgtbl-to-latex :splice t :skip 0 :hline "\\midrule" >> | | a | b | c | >> |---+---+-------------+---| >> | 1 | | mc(2)(c)(3) | | >> | | 2 | mc(2)(c)(4) | | >> >> Would produce >> >> % % BEGIN RECEIVE ORGTBL multicol >> & a & b & c\NN >> \midrule >> 1 & & \multicolumn{2}{c}{3} & \NN >> & 2 & \multicolumn{2}{c}{4} & \LL >> % END RECEIVE ORGTBL multicol > > # This should correctly read: > > % % BEGIN RECEIVE ORGTBL multicol > & a & b & c \\ > \midrule > 1 & & \multicolumn{2}{c}{3} \\ > & 2 & \multicolumn{2}{c}{4} \\ > % END RECEIVE ORGTBL multicol > >> The reason being that I would like to use \multicolumn often in the >> middle of an orgtbl. My workarounds with manually inserting the LaTeX >> macro are clumsy. >> >> I understood that users should write their own conversion functions. If >> I was going to try my fresh elisp fu, I wanted to ask here whether there >> exists a generic orgtbl syntax to implement the above intercell >> modification. I read the doc for version 7.5 but maybe there are also >> new methods in the dev version which I freshly use. >> >> Kind Regards, >> Michael Bach