emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas Holst <thomas.holst@de.bosch.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [new exporter] no caption and no label in tables exported to LaTeX
Date: Wed, 18 Jul 2012 11:25:56 +0200	[thread overview]
Message-ID: <ywod629lifob@de.bosch.com> (raw)

Hello,

still I am testing the new exporter.

Labels and captions are not exported to LaTeX.

ECM:
#+BEGIN_SRC org
  * Captions for Tables
    #+CAPTION: A Caption for Testing
    #+LABEL: tbl:Label
    #+ATTR_LaTeX: placement=[H]

    | one | two | three |
    |-----+-----+-------|
    |   1 |   2 |     3 |
    |   2 |   4 |     6 |
#+END_SRC

With old exporter this becomes

#+BEGIN_SRC latex
  \begin{table}[H]
  \caption{A Caption for Testing} \label{tbl:Label}
  \begin{center}
  \begin{tabular}{rrr}
   one  &  two  &  three  \\
  \hline
     1  &    2  &      3  \\
     2  &    4  &      6  \\
  \end{tabular}
  \end{center}
  \end{table}
#+END_SRC

in LaTeX. Wheras with the new exporter I get:
#+BEGIN_SRC latex
  \begin{center}
  \begin{tabular}{rrr}
  one & two & three\\
  \hline
  1 & 2 & 3\\
  2 & 4 & 6\\
  \end{tabular}
  \end{center}
#+END_SRC

Images are exported correctly.

This is with
(emacs-version)
"GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-19 on 3249CTO"

(org-version)
Org-mode version 7.8.11
(release_7.8.11-201-g528b17
 @ c:/daten/users/de_hts2fe/git/org-mode/lisp/)

P.S. Thanks to Nicolas for fixing the bug with two backslashes. I can
confirm it works with org-version above.

-- 
Bis neulich ...
  Thomas

             reply	other threads:[~2012-07-18  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18  9:25 Thomas Holst [this message]
2012-07-18  9:35 ` [new exporter] no caption and no label in tables exported to LaTeX Nicolas Goaziou
2012-07-18  9:45   ` Thomas Holst

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=ywod629lifob@de.bosch.com \
    --to=thomas.holst@de.bosch.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 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).