Nick Dokos writes: > Thomas S. Dye wrote: > >> Eric S Fraga writes: >> >> > Jakob Lombacher 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 > > 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