From: tsd@tsdye.com (Thomas S. Dye)
To: emacs-orgmode@gnu.org
Subject: Re: Table captions in LaTeX export
Date: Fri, 12 Jun 2015 06:52:21 -1000 [thread overview]
Message-ID: <m21thgna2i.fsf@tsdye.com> (raw)
In-Reply-To: <87d211pe5e.fsf@delle7240.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Fri, 12 Jun 2015 08:41:17 +0100")
Hi Eric,
Eric S Fraga <e.fraga@ucl.ac.uk> 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
next prev parent reply other threads:[~2015-06-12 16:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 6:12 Table captions in LaTeX export Thomas S. Dye
2015-06-12 7:41 ` Eric S Fraga
2015-06-12 16:52 ` Thomas S. Dye [this message]
2015-06-12 20:09 ` Rasmus
2015-06-12 21:57 ` Thomas S. Dye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m21thgna2i.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.