From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [LaTeX-Export] Longtable and Caption Date: Thu, 17 Dec 2009 10:58:07 +0100 Message-ID: <9062B6C1-A2C6-478D-8F94-902A64E350E3@gmail.com> References: <02E218E0-F8FD-44B8-974C-FC658722B32F@gmail.com> <55EA6F63-99FE-47A2-A5DD-9A9ECDA15485@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLDga-0007SD-Oj for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 05:34:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLDgW-0007Rb-29 for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 05:34:20 -0500 Received: from [199.232.76.173] (port=45721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLDgV-0007RY-RZ for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 05:34:15 -0500 Received: from ey-out-1920.google.com ([74.125.78.147]:59636) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLDgS-0001V8-2Z for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 05:34:15 -0500 Received: by ey-out-1920.google.com with SMTP id 4so493253eyg.34 for ; Thu, 17 Dec 2009 02:34:00 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ulf Stegemann Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Dec 17, 2009, at 8:59 AM, Ulf Stegemann wrote: > Hi Carsten, > > Carsten Dominik wrote: > >> On Dec 3, 2009, at 4:22 PM, Ulf Stegemann wrote: >> >>> Carsten Dominik wrote: >>> >>>> it was my understanding that the caption command in longtable is >>>> different >>>> from the caption command in normal tables, in that it is a line >>>> that is >>>> printed over the table on each page - so I thought it always >>>> needs to be >>>> there. Is that not correct? >>> >>> yes, treatment is different but nevertheless the caption is not >>> mandatory for longtable. I never had any problems with longtable >>> tables >>> without \caption{}. >> >> sorry for being so slow to process this request. >> >> I believe this works now as you requested, please verify. > > thanks for having a look at it (no need to apologise for the delay, > it's > certainly not an urgent matter). > > Captions are now suppressed for longtables without caption definition. > However, I've noticed that the extra linebreak (\\) is still > inserted in > longtable environments regardless of the presence of a caption. That > linebreak leads to undesired effects when using longtable without a > caption but with vertical lines. > > This should fix it: > > --- org-latex.el.orig 2009-12-17 08:10:19.000000000 +0100 > +++ org-latex.el 2009-12-17 08:49:02.000000000 +0100 > @@ -1538,7 +1538,7 @@ > "\\caption{%s%s}" > (if label (concat "\\\label{" label > "}") "") > (or caption ""))) > - (if longtblp "\\\\\n" "\n") > + (if (and longtblp caption) "\\\\\n" "\n") > (if (and org-export-latex-tables-centered > (not longtblp)) > "\\begin{center}\n") > (if (not longtblp) (concat "\\begin{tabular} > {" align "}\n")) > > Ulf > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten