I have an org-mode document with ditaa subtitles and dots. When I export to LaTeX, the resulting images do not fit inside the environment figure, are not set, \captionand are not set \label. Other blocks of source code export a penalty.
How can i fix this?
Here is an example of a document in org-mode:
* Plain source code works
this is a test
The above (Figure [[fig:works]]) is a figure with some source code. When
exported to LaTeX, it is placed inside a ~figure~ environment and
given a caption and label as expected.
* Ditaa doesn't work
#+CAPTION: Foo
#+LABEL: fig:foo
#+BEGIN_SRC ditaa :file foo.png :cmdline -E
/-----\
----------------------------->| foo |<-----------------------------
\-----/
#+END_SRC
The above (Figure [[fig:foo]]) is a ditaa figure. When exported to LaTeX,
the image is not inside a ~figure~ environment, it is missing the
caption, and there is no ~\label~.
* Dot doesn't work
digraph foo {
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf -> b;
}
The above (Figure [[fig:bar]]) is a dot figure. When exported to LaTeX,
the image is not inside a ~figure~ environment, it is missing the
caption, and there is no ~\label~.
I am using org-mode 8.2.10 on Emacs 24.3.1.
source
share