[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Latex Export: Place Caption Below Table
From: |
Nick Dokos |
Subject: |
Re: [O] Latex Export: Place Caption Below Table |
Date: |
Wed, 28 Sep 2011 15:40:46 -0400 |
Thomas S. Dye <address@hidden> wrote:
> Eric S Fraga <address@hidden> writes:
>
> > Jakob Lombacher <address@hidden> 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}
| \begin{tabular}{rr}
| ...
| \end{tabular}
| \end{center}
| \caption{Squares}
| \end{table}
`----
instead of
,----
| \begin{table}[htb]
| \caption{Squares}
| \begin{center}
| \begin{tabular}{rr}
| ...
| \end{tabular}
| \end{center}
| \end{table}
`----
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
caption-below-table.patch
Description: caption below table patch