From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: [LaTeX-Export] Longtable and Caption Date: Thu, 17 Dec 2009 08:59:29 +0100 Message-ID: References: <02E218E0-F8FD-44B8-974C-FC658722B32F@gmail.com> <55EA6F63-99FE-47A2-A5DD-9A9ECDA15485@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLBHH-0008TI-PN for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 03:00:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLBHC-0008SM-4H for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 03:00:02 -0500 Received: from [199.232.76.173] (port=33579 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLBHB-0008SJ-Tu for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:59:57 -0500 Received: from lo.gmane.org ([80.91.229.12]:53717) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NLBHB-0003wg-Dz for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 02:59:57 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NLBH6-0006gg-LC for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 08:59:52 +0100 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2009 08:59:52 +0100 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2009 08:59:52 +0100 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=org-latex_table-export.diff --- 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")) --=-=-= Content-Type: text/plain Ulf --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--