[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Table latex exporting ignores #+ATTR_LATEX:
From: |
Robert Klein |
Subject: |
Re: [O] Table latex exporting ignores #+ATTR_LATEX: |
Date: |
Mon, 26 Mar 2018 08:13:06 +0200 |
Hi,
On Sun, 25 Mar 2018 19:23:53 +0300
Peter Mukhachev <address@hidden> wrote:
> $ cat table-source.org
> #+ATTR_LATEX: :align lp{2cm}l
> | Name | Text | Rationale |
> | height | 18 m | ATC requriment |
>
> # Here I export with M-x org-table-export RET org-table-export-
> result.tex RET orgtbl-to-latex RET
>
> It gives the following (note the alignment string is "lll")
> $ cat org-table-export-result.tex
> \begin{tabular}{lll}
> Name & Text & Rationale\\
> height & 18 m & ATC requriment\\
> \end{tabular}
>
> However, when I dispatch it via M-x org-latex-export-to-latex, the
> output is the following (alignment stirg is the same as in org file)
> $ tail -n 6 table_source.tex
> \begin{tabular}{lp{2cm}l}
> Name & Text & Rationale\\
> height & 18 m & ATC requriment\\
> \end{tabular}
> \end{center}
> \end{document}%
>
>
Can you use body-only export? (That is, is your table the only content
of your document?)
In elisp (org-latex-export-to-latex nil nil nil t), or interactively
C-c C-e C-b <ENTER>.
Best regards
Robert
>
> On Sun, 2018-03-25 at 12:55 +0100, Eric S Fraga wrote:
> > On Tuesday, 20 Mar 2018 at 15:43, Peter Mukhachev wrote:
> > > (org-table-export) can probably do the thing I want. However,
> > > dispatching it with latex backend ends up with #+ATTR_LATEX: line
> > > ignored and exports bare table only in its tabular environment.
> > > However, I would like to be able to control the alignment either
> > > at my
> > > .org file with #+ATTR_LATEX (preferred) or at my top-level .tex
> > > file
> > > using tabular environment.
> >
> > Maybe show us a minimal example that does not work? Ideally, you
> > should
> > have something along the lines of
> >
> > #+attr_latex: ...
> > > a | table |
> >
> >
>