From 95555a4eaadd9d46c509d9d3724da0111803f194 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 31 May 2011 13:52:47 +0200 Subject: [PATCH] Document specifying placement options for tables * doc/org.texi (Tables in LaTeX export): Document specifying placement options for tables. Patch by Suvayu Ali. --- doc/org.texi | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index fea9146a3..d3fcf5e7a 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -10160,13 +10160,14 @@ All lines between these markers are exported literally @subsection Tables in @LaTeX{} export @cindex tables, in @LaTeX{} export -For @LaTeX{} export of a table, you can specify a label and a caption -(@pxref{Images and tables}). You can also use the @code{ATTR_LaTeX} line to -request a @code{longtable} environment for the table, so that it may span -several pages, or to change the default table environment from @code{table} -to @code{table*} or to change the default inner tabular environment to -@code{tabularx} or @code{tabulary}. Finally, you can set the alignment -string, and (with @code{tabularx} or @code{tabulary}) the width: +For @LaTeX{} export of a table, you can specify a label, a caption and +placement options (@pxref{Images and tables}). You can also use the +@code{ATTR_LaTeX} line to request a @code{longtable} environment for the +table, so that it may span several pages, or to change the default table +environment from @code{table} to @code{table*} or to change the default inner +tabular environment to @code{tabularx} or @code{tabulary}. Finally, you can +set the alignment string, and (with @code{tabularx} or @code{tabulary}) the +width: @cindex #+CAPTION @cindex #+LABEL @@ -10207,7 +10208,20 @@ element. You can use an @code{#+ATTR_LaTeX:} line to specify the various options that can be used in the optional argument of the @code{\includegraphics} macro. To modify the placement option of the @code{figure} environment, add something like @samp{placement=[h!]} to the -Attributes. +Attributes. It is to be noted this option can be used with tables as well. +The options are passed as the placement option to floating environments like +@code{figure} or @code{table}. One can pass other compatible options as well. +For example the @code{#+ATTR_LaTeX:} line below is exported as the +@code{figure} environment below it. + +@cindex #+ATTR_LaTeX +@example +#+ATTR_LaTeX: placement=[]\footnotesize + +\begin{figure}[]\footnotesize +... +\end{figure} +@end example If you would like to let text flow around the image, add the word @samp{wrap} to the @code{#+ATTR_LaTeX:} line, which will make the figure occupy the left