emacs-orgmode
[Top][All Lists]

## [O] [new exporter] no \caption and \label upon export of #+BEGIN_LATEX b

 From: Myles English Subject: [O] [new exporter] no \caption and \label upon export of #+BEGIN_LATEX block Date: Sat, 10 Nov 2012 22:02:14 +0000 User-agent: mu4e 0.9.9.5-dev1; emacs 24.2.1

Hello,

I'd like to use a tikz snippet in a few different documents and it would
be convenient to be able to include it in a latex document like so:

#+CAPTION: a fine figure
#+NAME:   figure:fine_figure
#+ATTR_LaTeX: width=5cm
#+BEGIN_LATEX
\input{/home/myles/tex/tikz_figure.tex}
#+END_LATEX

What is exported is just the \input line, with no \label or \caption, i.e.:

\input{/home/myles/tex/tikz_figure.tex}

I believe this was possible with current (old) exporter, based on this

http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00267.html

On second thoughts, perhaps another way to do it would be to have a
source block make the tikz graphic as a standalone pdf/eps and then
insert it as a link to the file.  The disadvantage of that would be that
the tikz .tex file would need to be expanded to have it's own
\begin/end{document} and would loose some flexibility.  Any thoughts on
that route?

Thanks,

Myles

Org-mode version 7.9.2 (release_7.9.2-571-g359891 @
/home/myles/.emacs.d/plugins/org-mode/lisp/)