Jakob Lombacher | 28 Sep 13:26 2011
Picon

Latex Export: Place Caption Below Table

Hi,

if I export a document to latex, the caption of a table is always on the top.

How can I place it at the bottom? Is there a parameter to config it?

Thanks

Jakob

Examaple

#+LABEL: tbl:asdf
#+CAPTION: ?????
| | |

"leads to:"
---------------

\begin{table}[htb]
\caption{?????} \label{tbl:datenstrukturen}
.....
\end{table}

I need:
----------

\begin{table}[htb]
.....
\caption{?????} \label{tbl:datenstrukturen}
(Continue reading)

Eric S Fraga | 28 Sep 17:07 2011
X-Face
Picon
Picon

Re: Latex Export: Place Caption Below Table

Jakob Lombacher <kontakt <at> lombacher.net> writes:

> Hi,
>
> if I export a document to latex, the caption of a table is always on the top.
>
> How can I place it at the bottom? Is there a parameter to config it?

No, the placement is (currently) fixed to come before the tabular (or
alternative) environment.  Line 1970 or thereabouts in
org-latex.el.  Should be straightforward to modify although it is a
quite common convention to have the caption above the table...

--

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.7 (release_7.7.329.g15c3)

Thomas S. Dye | 28 Sep 21:02 2011

Re: Latex Export: Place Caption Below Table

Eric S Fraga <e.fraga <at> ucl.ac.uk> writes:

> Jakob Lombacher <kontakt <at> lombacher.net> writes:
>
>> Hi,
>>
>> if I export a document to latex, the caption of a table is always on the top.
>>
>> How can I place it at the bottom? Is there a parameter to config it?
>
> No, the placement is (currently) fixed to come before the tabular (or
> alternative) environment.  Line 1970 or thereabouts in
> org-latex.el.  Should be straightforward to modify although it is a
> quite common convention to have the caption above the table...

Hi Eric,

Are you able to propose a patch?  This came up in my work recently with
a journal that puts captions below a table (and ends them with a
period!).  

All the best,
Tom
--

-- 
Thomas S. Dye
http://www.tsdye.com

Nick Dokos | 28 Sep 21:40 2011
Picon

Re: Latex Export: Place Caption Below Table

Thomas S. Dye <tsd <at> tsdye.com> wrote:

> Eric S Fraga <e.fraga <at> ucl.ac.uk> writes:
> 
> > Jakob Lombacher <kontakt <at> lombacher.net> writes:
> >
> >> Hi,
> >>
> >> if I export a document to latex, the caption of a table is always on the top.
> >>
> >> How can I place it at the bottom? Is there a parameter to config it?
> >
> > No, the placement is (currently) fixed to come before the tabular (or
> > alternative) environment.  Line 1970 or thereabouts in
> > org-latex.el.  Should be straightforward to modify although it is a
> > quite common convention to have the caption above the table...
> 
> Hi Eric,
> 
> Are you able to propose a patch?  This came up in my work recently with
> a journal that puts captions below a table (and ends them with a
> period!).  
> 

It's just a matter of emitting the \caption after the contents of the
table, rather than before:

,----
| \begin{table}[htb]
| \begin{center}
(Continue reading)

Thomas S. Dye | 2 Oct 18:26 2011

[PATCH] Re: Latex Export: Place Caption Below Table

Nick Dokos <nicholas.dokos <at> hp.com> writes:

> Thomas S. Dye <tsd <at> tsdye.com> wrote:
>
>> Eric S Fraga <e.fraga <at> ucl.ac.uk> writes:
>> 
>> > Jakob Lombacher <kontakt <at> lombacher.net> writes:
>> >
>> >> Hi,
>> >>
>> >> if I export a document to latex, the caption of a table is always on the top.
>> >>
>> >> How can I place it at the bottom? Is there a parameter to config it?
>> >
>> > No, the placement is (currently) fixed to come before the tabular (or
>> > alternative) environment.  Line 1970 or thereabouts in
>> > org-latex.el.  Should be straightforward to modify although it is a
>> > quite common convention to have the caption above the table...
>> 
>> Hi Eric,
>> 
>> Are you able to propose a patch?  This came up in my work recently with
>> a journal that puts captions below a table (and ends them with a
>> period!).  
>> 
>
> It's just a matter of emitting the \caption after the contents of the
> table, rather than before:
>
> ,----
(Continue reading)

Eric S Fraga | 3 Oct 10:10 2011
X-Face
Picon
Picon

Re: [PATCH] Re: Latex Export: Place Caption Below Table

tsd <at> tsdye.com (Thomas S. Dye) writes:

> Nick Dokos <nicholas.dokos <at> hp.com> writes:

>> The following patch (deliberately hidden as a binary octet-stream to keep it
>> out of patchwork) will do that - but IMO, it would be better to have yet another
>> user-settable option to control the placement.
>>
>> Nick
>>
>>
>
> Aloha all,
>
> The inlined patch introduces a variable
> org-export-latex-table-caption-above to control the placement of table
> captions.  Thanks to Nick Dokos for leading the way on this.
>
> Tom

Tom & Nick,

thanks for doing this -- I was swamped last week so had no chance of
following the thread until today!

One comment on the last version of the patch: would it not be better for
the variable to be a defcustom variable instead of defvar?  Otherwise,
the patch looks fine to me although I'm unlikely to use the new
functionality ;-)

(Continue reading)

Nick Dokos | 3 Oct 16:43 2011
Picon

Re: [PATCH] Re: Latex Export: Place Caption Below Table

Eric S Fraga <e.fraga <at> ucl.ac.uk> wrote:

> tsd <at> tsdye.com (Thomas S. Dye) writes:
> 
> > Nick Dokos <nicholas.dokos <at> hp.com> writes:
> 
> >> The following patch (deliberately hidden as a binary octet-stream to keep it
> >> out of patchwork) will do that - but IMO, it would be better to have yet another
> >> user-settable option to control the placement.
> >>
> >> Nick
> >>
> >>
> >
> > Aloha all,
> >
> > The inlined patch introduces a variable
> > org-export-latex-table-caption-above to control the placement of table
> > captions.  Thanks to Nick Dokos for leading the way on this.
> >
> > Tom
> 
> 
> thanks for doing this -- I was swamped last week so had no chance of
> following the thread until today!
> 
> One comment on the last version of the patch: would it not be better for
> the variable to be a defcustom variable instead of defvar?

I agree - being able to customize variables without resorting to lisp is
(Continue reading)

Carsten Dominik | 9 Oct 13:23 2011
Picon

Re: [PATCH] Re: Latex Export: Place Caption Below Table


On 3.10.2011, at 16:43, Nick Dokos wrote:

> Eric S Fraga <e.fraga <at> ucl.ac.uk> wrote:
> 
>> tsd <at> tsdye.com (Thomas S. Dye) writes:
>> 
>>> Nick Dokos <nicholas.dokos <at> hp.com> writes:
>> 
>>>> The following patch (deliberately hidden as a binary octet-stream to keep it
>>>> out of patchwork) will do that - but IMO, it would be better to have yet another
>>>> user-settable option to control the placement.
>>>> 
>>>> Nick
>>>> 
>>>> 
>>> 
>>> Aloha all,
>>> 
>>> The inlined patch introduces a variable
>>> org-export-latex-table-caption-above to control the placement of table
>>> captions.  Thanks to Nick Dokos for leading the way on this.
>>> 
>>> Tom
>> 
>> 
>> thanks for doing this -- I was swamped last week so had no chance of
>> following the thread until today!
>> 
>> One comment on the last version of the patch: would it not be better for
(Continue reading)

Thomas S. Dye | 10 Oct 01:24 2011

Re: [PATCH] Re: Latex Export: Place Caption Below Table

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> On 3.10.2011, at 16:43, Nick Dokos wrote:
>
>> Eric S Fraga <e.fraga <at> ucl.ac.uk> wrote:
>> 
>>> tsd <at> tsdye.com (Thomas S. Dye) writes:
>>> 
>>>> Nick Dokos <nicholas.dokos <at> hp.com> writes:
>>> 
>>>>> The following patch (deliberately hidden as a binary octet-stream to keep it
>>>>> out of patchwork) will do that - but IMO, it would be better to have yet another
>>>>> user-settable option to control the placement.
>>>>> 
>>>>> Nick
>>>>> 
>>>>> 
>>>> 
>>>> Aloha all,
>>>> 
>>>> The inlined patch introduces a variable
>>>> org-export-latex-table-caption-above to control the placement of table
>>>> captions.  Thanks to Nick Dokos for leading the way on this.
>>>> 
>>>> Tom
>>> 
>>> 
>>> thanks for doing this -- I was swamped last week so had no chance of
>>> following the thread until today!
>>> 
(Continue reading)

Carsten Dominik | 10 Oct 21:05 2011
Picon

Re: [PATCH] Re: Latex Export: Place Caption Below Table

Applied, thanks.

- Carsten

On 10.10.2011, at 01:24, Thomas S. Dye wrote:

> Carsten Dominik <carsten.dominik <at> gmail.com> writes:
> 
>> On 3.10.2011, at 16:43, Nick Dokos wrote:
>> 
>>> Eric S Fraga <e.fraga <at> ucl.ac.uk> wrote:
>>> 
>>>> tsd <at> tsdye.com (Thomas S. Dye) writes:
>>>> 
>>>>> Nick Dokos <nicholas.dokos <at> hp.com> writes:
>>>> 
>>>>>> The following patch (deliberately hidden as a binary octet-stream to keep it
>>>>>> out of patchwork) will do that - but IMO, it would be better to have yet another
>>>>>> user-settable option to control the placement.
>>>>>> 
>>>>>> Nick
>>>>>> 
>>>>>> 
>>>>> 
>>>>> Aloha all,
>>>>> 
>>>>> The inlined patch introduces a variable
>>>>> org-export-latex-table-caption-above to control the placement of table
>>>>> captions.  Thanks to Nick Dokos for leading the way on this.
>>>>> 
(Continue reading)


Gmane