Thomas S. Dye <[email protected]> wrote: > Eric S Fraga <[email protected]> writes: > > > Jakob Lombacher <[email protected]> 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
