emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Feature Request: LaTeX export table/figure notes in float environment
Date: Thu, 18 Feb 2016 16:21:13 +0100	[thread overview]
Message-ID: <871t8aavti.fsf@gmx.us> (raw)
In-Reply-To: 56C4A957.9010409@gmail.com

Hi,

Felix Kaminsky <felixkaminsky@googlemail.com> writes:

> I am amazed by org-mode and baffled that I didn't find it earlier. It revolutionized my workflow which is usually quickly
> writing reports and exporting them to PDF via LaTeX.
> There is one feature that I really miss. Something to put notes below a table within the LaTeX float environment.
> Something that the LaTeX output looks similar to this:
>
> \begin{table}[htb]
> \caption
> \begin{tabular}
> ....
> \end{tabular}
> \label{...}
> Notes: some text
> \end{table}
>
> I am currently using a workaround by setting the option org-latex-table-caption-above to nil and putting the caption below
> together with the text for the notes.
> But in a standard document I'd prefer the caption above.

Try with special blocks.

Eval:

    (setq org-latex-caption-above '(table special-block))

With this, the following,

    #+caption: cap
    #+begin_table
    #+Attr_latex: :float nil
    | a | b |
    Notes 
    #+end_table

would result in something like this,

    \begin{table}
    \caption{cap}
    \begin{center}
    \begin{tabular}{ll}
    \toprule
    a & b\\
    \bottomrule
    \end{tabular}
    \end{center}
    Notes
    \end{table}

You might have to tweak the centering to your liking (e.g. another center
special block and the attribute :center nil).

Hope it helps,
Rasmus

-- 
Evidence suggests Snowden used a powerful tool called monospaced fonts

  reply	other threads:[~2016-02-18 15:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 17:09 Feature Request: LaTeX export table/figure notes in float environment Felix Kaminsky
2016-02-18 15:21 ` Rasmus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-02-14  7:20 Felix Kaminsky

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871t8aavti.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).