emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [LaTeX-Export] Longtable and Caption


From: Ulf Stegemann
Subject: [Orgmode] Re: [LaTeX-Export] Longtable and Caption
Date: Thu, 17 Dec 2009 08:59:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Hi Carsten,

Carsten Dominik <address@hidden> wrote:

> On Dec 3, 2009, at 4:22 PM, Ulf Stegemann wrote:
>
>> Carsten Dominik <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]