emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sam Ritchie <sritchie09@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Image #s and captions missing in Org 8 Latex Export
Date: Mon, 6 May 2013 10:40:22 -0500	[thread overview]
Message-ID: <CAHO+NR6Wuru1_rNc1nqe5twzN7Pk7i6cJH_L_9Fu=aAiWastfA@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2013-05-06 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06 15:40 Sam Ritchie [this message]
2013-05-06 18:52 ` Image #s and captions missing in Org 8 Latex Export Nicolas Goaziou
2013-05-06 18:56   ` Sam Ritchie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHO+NR6Wuru1_rNc1nqe5twzN7Pk7i6cJH_L_9Fu=aAiWastfA@mail.gmail.com' \
    --to=sritchie09@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).