0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-21 18:49:08 +00:00

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

View file

@ -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=[<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}
to the @code{#+ATTR_LaTeX:} line, which will make the figure occupy the left