emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [new exporter] no caption and no label in tables exported to LaTeX
@ 2012-07-18  9:25 Thomas Holst
  2012-07-18  9:35 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Holst @ 2012-07-18  9:25 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-18  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-18  9:25 [new exporter] no caption and no label in tables exported to LaTeX Thomas Holst
2012-07-18  9:35 ` Nicolas Goaziou
2012-07-18  9:45   ` Thomas Holst

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).