From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Subject: Re: orgtbl-to-latex :splice t :skip x does not radio empty first column Date: Wed, 13 Jun 2012 17:16:03 -0400 Message-ID: <4FD90313.9080701@verizon.net> References: <4FD8FEC7.5030103@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeuvL-0003jS-9P for emacs-orgmode@gnu.org; Wed, 13 Jun 2012 17:16:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeuvJ-0003iB-9l for emacs-orgmode@gnu.org; Wed, 13 Jun 2012 17:16:18 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:20560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeuvJ-0003i1-4j for emacs-orgmode@gnu.org; Wed, 13 Jun 2012 17:16:17 -0400 Received: from [10.0.0.2] ([unknown] [74.111.52.81]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M5K00FMMR2NWRC0@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 13 Jun 2012 16:16:00 -0500 (CDT) In-reply-to: <4FD8FEC7.5030103@verizon.net> 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 First I neglected to mention that I am using Org-mode 7.8.11, Emacs 24.0.93.1 on Windows 7. Second my example at the end should be | | foo| bar| should yield & foo & bar \\ Charlie Millar On 6/13/2012 4:57 PM, Charles wrote: > I have searched "radio table", "skip" and "splice" and have attempted > to understand some of the code in org-table.el concerning > orgtbl-to-latex; all with no luck. > If there is an post or answer or solution that already exist please > advise and I'll keep on looking. > > I am setting up a document the format of which is required. Different > source files will be used. As an example: > > Table to radio: > > TBLNAME: SCHEDA1 > #+ORGTBL: SEND SCHEDA1 orgtbl-to-latex :splice t :skip 2 > | Date | Description | Value | Basis | Loss | > | -------+---------------------------------------+---------+-- > -----+--------| > | | None | 0.00 | > 0.00 | 0.00 | > | | Total Gains on sales, etc. | | | > 0.00 | > > #+TBLFM: @>$>=vsum(@2..-1);%.2f::$5=vsum($3-$4);%.2f > > Target table much further down: > > Schedule A-1 > \begin{tabulary}{parameters} > Date & \multicolumn{1}{c}{Transaction} & \multicolumn{1}{c}{Proceeds} > & \multicolumn{1}{c}{Basis} & \multicolumn{1}{c}{Gain}\\ > \hline \hline > % BEGIN RECEIVE ORGTBL SCHEDA1 > % END RECEIVE ORGTBL SCHEDA1 > \end{tabulary} > > Result after C-c C-c on SCHEDA1 > > \begin{tabulary}{parameters} > Date & \multicolumn{1}{c}{Transaction} & \multicolumn{1}{c}{Proceeds} > & \multicolumn{1}{c}{Basis} & \multicolumn{1}{c}{Gain}\\ > \hline \hline > % BEGIN RECEIVE ORGTBL SCHEDA1 > None & 0.00 & 0.00 & 0.00 \\ > Total Gains on sales, etc. & & & 0.00 \\ > % END RECEIVE ORGTBL SCHEDA1 > \end{tabulary} > > As you will observe, the empty column is not radioed, i.e. there is no > "&" preceding the "None" and the "Total Gains . . . ." AFAIC, it > should be unnecessary to enter something in the original first column > prior to sending just to have orgtbl-to-latex correctly radio what > should be an empty column. At the moment the only hack or kludge > (pardon me if I use these incorrectly) is to place the "&" prior to > "None" and "Total" after conversion to LaTeX. Again, however, this > also should not be necessary in the first place, i.e. | | foo| bar| > should yield & & foo & bar \\ > > Anyway, Texworks typesets this as > > Date Transaction Proceeds > Basis Gain > ---------------------------------------------------------------------------------------------- > (the two \hlines are printed) > None 0.00 > 0.00 0.00 > Total Gains on > sales 0.00 > > For reasons that are not germane, I want to radio only the "data" rows > from the original ORGTBL, i.e. no headings or hlines since these will > be provided in what is essentially a LaTeX template. > Also, the table cannot be omitted from the account. > > Charlie Millar > > > > > > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1424 / Virus Database: 2433/5067 - Release Date: 06/13/12 > >