* Image #s and captions missing in Org 8 Latex Export
@ 2013-05-06 15:40 Sam Ritchie
2013-05-06 18:52 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Sam Ritchie @ 2013-05-06 15:40 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
Hey all,
I've just upgraded to org 8 (from 7.9) and am running into an issue with my
latex export. I can't get captions to show up on the results of a code
block evaluation, or reference those results with, for example
[[fig:graph]]:
#+caption: Graphviz Example
#+name: fig:graph
#+BEGIN_SRC dot :exports results :file graph.png :eval yes :cmdline -Kdot
-Tpng
digraph data_relationships {
"org-mode"
"org-exp-blocks"
"dot"
"ditaa"
"HTML" [shape=Mrecord, label="{HTML|publish on the web\l}"]
"LaTeX" [shape=Mrecord, label="{LaTeX|publish in PDF\l}"]
"org-mode" -> "org-exp-blocks"
"dot" -> "org-mode"
"ditaa" -> "org-mode"
"org-exp-blocks" -> "HTML"
"org-exp-blocks" -> LaTeX
}
(+ 2 2)
#+END_SRC
Captions and internal links to actual code listings are working great:
#+caption: Hello, World in Clojure
#+name: fig:hello
#+BEGIN_SRC clojure :exports code :eval no
(println "Hello, World!")
#+END_SRC
[[fig:hello]] resolves to "1", as expected, and the caption shows up in
HTML export and in the Latex export as "Figure 1: Hello, World in Clojure".
In org 7.9, my captions resolved on the png results but would never show up
on code exports. Is there some option flag I need to enable to generate
refs for embedded PNGs?
Thanks!
Sam
--
Sam Ritchie, Twitter Inc
703.662.1337
@sritchie
(Too brief? Here's why! http://emailcharter.org)
[-- Attachment #2: Type: text/html, Size: 2976 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Image #s and captions missing in Org 8 Latex Export
2013-05-06 15:40 Image #s and captions missing in Org 8 Latex Export Sam Ritchie
@ 2013-05-06 18:52 ` Nicolas Goaziou
2013-05-06 18:56 ` Sam Ritchie
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2013-05-06 18:52 UTC (permalink / raw)
To: Sam Ritchie; +Cc: emacs-orgmode
Hello,
Sam Ritchie <sritchie09@gmail.com> writes:
> I've just upgraded to org 8 (from 7.9) and am running into an issue with my
> latex export. I can't get captions to show up on the results of a code
> block evaluation, or reference those results with, for example
> [[fig:graph]]:
You need to apply CAPTION and NAME keywords on the results, not the
source code.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Image #s and captions missing in Org 8 Latex Export
2013-05-06 18:52 ` Nicolas Goaziou
@ 2013-05-06 18:56 ` Sam Ritchie
0 siblings, 0 replies; 3+ messages in thread
From: Sam Ritchie @ 2013-05-06 18:56 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1819 bytes --]
Hey, excellent, that works. Thanks so much!
> Nicolas Goaziou <mailto:n.goaziou@gmail.com>
> May 6, 2013 1:52 PM
> Hello,
>
>
> You need to apply CAPTION and NAME keywords on the results, not the
> source code.
>
>
> Regards,
>
> Sam Ritchie <mailto:sritchie09@gmail.com>
> May 6, 2013 10:40 AM
> Hey all,
>
> I've just upgraded to org 8 (from 7.9) and am running into an issue
> with my latex export. I can't get captions to show up on the results
> of a code block evaluation, or reference those results with, for
> example [[fig:graph]]:
>
> #+caption: Graphviz Example
> #+name: fig:graph
> #+BEGIN_SRC dot :exports results :file graph.png :eval yes :cmdline
> -Kdot -Tpng
> digraph data_relationships {
> "org-mode"
> "org-exp-blocks"
> "dot"
> "ditaa"
> "HTML" [shape=Mrecord, label="{HTML|publish on the web\l}"]
> "LaTeX" [shape=Mrecord, label="{LaTeX|publish in PDF\l}"]
> "org-mode" -> "org-exp-blocks"
> "dot" -> "org-mode"
> "ditaa" -> "org-mode"
> "org-exp-blocks" -> "HTML"
> "org-exp-blocks" -> LaTeX
> }
> (+ 2 2)
> #+END_SRC
>
> Captions and internal links to actual code listings are working great:
>
> #+caption: Hello, World in Clojure
> #+name: fig:hello
> #+BEGIN_SRC clojure :exports code :eval no
> (println "Hello, World!")
> #+END_SRC
>
> [[fig:hello]] resolves to "1", as expected, and the caption shows up
> in HTML export and in the Latex export as "Figure 1: Hello, World in
> Clojure".
>
> In org 7.9, my captions resolved on the png results but would never
> show up on code exports. Is there some option flag I need to enable to
> generate refs for embedded PNGs?
>
> Thanks!
> Sam
>
> --
> Sam Ritchie, Twitter Inc
> 703.662.1337
> @sritchie
>
> (Too brief? Here's why! http://emailcharter.org)
--
Sam Ritchie, Twitter Inc
703.662.1337
@sritchie
[-- Attachment #2.1: Type: text/html, Size: 5424 bytes --]
[-- Attachment #2.2: compose-unknown-contact.jpg --]
[-- Type: image/jpeg, Size: 770 bytes --]
[-- Attachment #2.3: postbox-contact.jpg --]
[-- Type: image/jpeg, Size: 1265 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-06 18:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06 15:40 Image #s and captions missing in Org 8 Latex Export Sam Ritchie
2013-05-06 18:52 ` Nicolas Goaziou
2013-05-06 18:56 ` Sam Ritchie
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.