emacs-orgmode
[Top][All Lists]

## Re: [Orgmode] LaTeX export of tables

 From: Darlan Cavalcante Moreira Subject: Re: [Orgmode] LaTeX export of tables Date: Mon, 19 Oct 2009 15:05:11 -0300 User-agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO)

If you are going to export only to LaTeX then you may just write the table in
latex syntax. Org-mode will recognize the latex environment and export it as it
is for latex. For HTML the table will be exported as a image, since it is a
"latex table" instead of an "org-mode table". It is not as convenient, but at
least you get what you want for now.

If you need to publish to another format then maybe there is a way to tell
org-mode to export certain part of the file only in latex, and other part only
in HTML. In this way you could have your elaborated table when publishing in
latex and a table following the org-mode syntax when publishing in HTML.

Darlan

At Mon, 19 Oct 2009 13:58:07 +0200,
>
> Hi,
>
> Can I give this thread a bump?
>
> Francesco Pizzolante wrote:
> > Hi,
> >
> > When exporting tables to LaTeX, I think it would be good to have the
> > following
> > options to be able to define:
> >
> >   - the table environment to be used: now we have the option to have tabular
> >     and longtable, but I could also use array, tabular*, tabularx, tabulary,
> >     etc.
> >
> >     The general rule is:
> >
> >     \begin{TABLEENV}{WIDTH}[VPOS]{COLS}
> >     ROWS
> >     \end{TABLEENV}
> >
> >     TABLEENV can be any of tabular, array, tabular*, tabularx, etc.,
> > depending
> >     on the type of table I want.
> >
> >     Some types of table need a WIDTH to be specified; in this case, I would
> >     add a WIDTH option. An extra vertical position VPOS option can also be
> >     added to some types of table.
> >
> >     The COLS parameter already receives the value from the "align" org
> >     attribute.
> >
> >     The following options
> >
> >     #+ATTR_LATEX: tabularx width=\textwidth align=lX vpos=tb
> >
> >     would generate the following LaTeX code:
> >
> >     \begin{tabularx}{\textwidth}[tb]{lX}
> >     ROWS
> >     \end{tabularx}
> >
> >
> >   - the rule to be used as hline (similar option as in
> >     #+ORGTBL: :hline="\\midrule"):
> >
> >     #+ATTR_LATEX: hline=midrule or #+ATTR_LATEX: hline="\\midrule"
> >
> >
> >   - define the top and bottom rules:
> >
> >     #+ATTR_LATEX: toprule="\\toprule" bottomrule="\\bottomrule"
> >
> >
> > Does it make sense? Would it be possible to have these new options in a
> > future
> > orgmode release?
>
> I really am eager to use orgmode in order to generate all my LaTeX documents.
> But, as of now, the LaTeX export of tables offers only limited flexibility.
>
> My proposal is simply to add a few org attributes (type of the table, toprule,
> bottomrule, hline, vpos) in order to get an improved flexibility when
> generating LaTeX tables.
>
> Can someone take care of my request?
>
> Thanks a lot,
> Francesco
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use Reply All' to send replies to the list.
`