[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Table captions in LaTeX export
From: |
Thomas S. Dye |
Subject: |
Re: [O] Table captions in LaTeX export |
Date: |
Fri, 12 Jun 2015 06:52:21 -1000 |
Hi Eric,
Eric S Fraga <address@hidden> writes:
> On Thursday, 11 Jun 2015 at 20:12, Thomas S. Dye wrote:
>
> [...]
>
>> It would be good to have :caption and label honored, even when :float
>> nil, like this:
>
> You could always resort to direct LaTeX directives, as in
>
> #+begin_src org
> ,#+begin_margintable
> ,#+latex: \label{tab:eg} \caption{Example table}
> ,#+attr_latex: :float nil :booktabs t :center nil
> | First | Second |
> |-------+--------|
> | One | Two |
> | Three | Four |
> ,#+end_margintable
> #+end_src
Unfortunately, this isn't fully functional. The internal link points to
#+name: and not \label{}.
,----------------------------------------------------------
| Here is a reference to TableĀ [[tab:eg]].
| #+begin_margintable
| #+name: tab:eg
| #+latex: \caption{Example table\label{tab:eg}}
| #+attr_latex: :float nil :booktabs t :center nil
| | First | Second |
| |-------+--------|
| | One | Two |
| | Three | Four |
| #+end_margintable
`----------------------------------------------------------
,------------------------------------------------
| Here is a reference to Table~\ref{orgkeyword1}.
| \begin{margintable}
| \caption{Example table\label{tab:eg}}
| \begin{tabular}{ll}
| \toprule
| First & Second\\
| \midrule
| One & Two\\
| Three & Four\\
| \bottomrule
| \end{tabular}
| \end{margintable}
`------------------------------------------------
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com