emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* \ref{} in #+caption
@ 2012-01-21 11:27 Andreas Leha
  0 siblings, 0 replies; only message in thread
From: Andreas Leha @ 2012-01-21 11:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

is it possible to get \ref{} to work in #+caption lines generally?  As
it seems, the #+caption is not processed.  So the \ref{} statements in
#+captions work only in LaTeX export, where \ref{} is valid.  In the
#other exports, the \ref{} is exported literally.

Example:
=== test.org =================================
* Test ref in caption
#+caption: bar referencing \ref{fig:baz}
#+label: fig:bar
#+name: bar
#+attr_odt: :width 8
#+header: :file bar.png
#+header: :width 7200 :height 3600 :res 600
#+begin_src R :exports results :results graphics
  plot(1:10, 1:10)
#+end_src

#+caption: baz
#+label: fig:baz
#+name: baz
#+attr_odt: :scale 0.5
#+header: :file baz.png
#+header: :width 7200 :height 3600 :res 600
#+begin_src R :exports results :results graphics
  plot(1:10, 1:10)
#+end_src
==============================================

Best,
Andreas

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-21 11:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-21 11:27 \ref{} in #+caption Andreas Leha

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