Next: , Previous: Quoting LaTeX code, Up: LaTeX and PDF export

12.6.4 Tables in LaTeX export

For LaTeX export of a table, you can specify a label, a caption and placement options (see Images and tables). You can also use the ATTR_LaTeX line to request a longtable environment for the table, so that it may span several pages, or to change the default table environment from table to table* or to change the default inner tabular environment to tabularx or tabulary. Finally, you can set the alignment string, and (with tabularx or tabulary) the width:

     #+CAPTION: A long table
     #+LABEL: tbl:long
     #+ATTR_LaTeX: longtable align=l|lp{3cm}r|l
     | ..... | ..... |
     | ..... | ..... |

or to specify a multicolumn table with tabulary

     #+CAPTION: A wide table with tabulary
     #+LABEL: tbl:wide
     #+ATTR_LaTeX: table* tabulary width=\textwidth
     | ..... | ..... |
     | ..... | ..... |