Document specifying placement options for tables

* doc/org.texi (Tables in LaTeX export): Document specifying placement
options for tables.

Patch by Suvayu Ali.
This commit is contained in:
Carsten Dominik 2011-05-31 13:52:47 +02:00
parent 1beda3d3c8
commit 95555a4eaa
1 changed files with 22 additions and 8 deletions

View File

@ -10160,13 +10160,14 @@ All lines between these markers are exported literally
@subsection Tables in @LaTeX{} export @subsection Tables in @LaTeX{} export
@cindex tables, in @LaTeX{} export @cindex tables, in @LaTeX{} export
For @LaTeX{} export of a table, you can specify a label and a caption For @LaTeX{} export of a table, you can specify a label, a caption and
(@pxref{Images and tables}). You can also use the @code{ATTR_LaTeX} line to placement options (@pxref{Images and tables}). You can also use the
request a @code{longtable} environment for the table, so that it may span @code{ATTR_LaTeX} line to request a @code{longtable} environment for the
several pages, or to change the default table environment from @code{table} table, so that it may span several pages, or to change the default table
to @code{table*} or to change the default inner tabular environment to environment from @code{table} to @code{table*} or to change the default inner
@code{tabularx} or @code{tabulary}. Finally, you can set the alignment tabular environment to @code{tabularx} or @code{tabulary}. Finally, you can
string, and (with @code{tabularx} or @code{tabulary}) the width: set the alignment string, and (with @code{tabularx} or @code{tabulary}) the
width:
@cindex #+CAPTION @cindex #+CAPTION
@cindex #+LABEL @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 options that can be used in the optional argument of the
@code{\includegraphics} macro. To modify the placement option of the @code{\includegraphics} macro. To modify the placement option of the
@code{figure} environment, add something like @samp{placement=[h!]} to 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=[<options>]\footnotesize
\begin{figure}[<options>]\footnotesize
...
\end{figure}
@end example
If you would like to let text flow around the image, add the word @samp{wrap} 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 to the @code{#+ATTR_LaTeX:} line, which will make the figure occupy the left