From: Austin Frank <austin.frank@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [babel] help debugging latex export
Date: Fri, 06 Aug 2010 11:00:22 -0400 [thread overview]
Message-ID: <m0eiebaird.fsf@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2115 bytes --]
Hi all!
I've got a very mysterious mystery bug that keeps biting me, and I don't
know how to hunt it down. Even worse, I haven't been able to replicate
it in a small example file... it only happens in this one particular
document, but it happens consistently in that document.
I start with the following source block:
#v+
#+CAPTION: Regression coefficients from standardized model of training trials
#+LABEL: fig:reg-coef-train
#+ATTR_LATEX: width=5in, height=3in
#+BEGIN_SRC R :exports results :file fig-reg-coef-train.png
names <- rownames(summary(fit.a.lm.z)$coef)
coefs <- summary(fit.a.lm.z)$coef[, 1]
sds <- summary(fit.a.lm.z)$coef[, 2]
CI <- sds * 1.96
a.coefs <- data.frame(label = names, estimate = coefs, sd = sds, lower = coefs - CI, upper = coefs + CI)
a.coefs.gg <-
ggplot(a.coefs,
aes(x = label, y = estimate,
ymin = lower, ymax = upper)) +
geom_pointrange() +
geom_hline(yintercept = 0) +
coord_flip()
a.coefs.gg
#+END_SRC
#+results[9d390c2ddaa0e5cc63614611542c9cfdf0f21d41]:
[[file:fig-reg-coef-train.png]]
#v-
When I run org-export-as-latex on the entire document, this block gets
incorrectly exported as:
#v+
[[file:fig-reg-coef-train.png][file:fig-reg-coef-train.png]]
#v-
Whereas if I select just that block and run org-export-region-as-latex,
it gets correctly exported as:
#v+
\begin{figure}[htb]
\centering
\includegraphics[width=5in, height=3in]{fig-reg-coef-train.png}
\caption{\label{fig:reg-coef-train}Regression coefficients from standardized model of training trials}
\end{figure}
#v-
This happens to some graphic-producing source blocks in the file and not
others. I haven't been able to figure out what the common element is
that causes some to export correctly under all circumstances, and others
to have a link description added and be exported as plain text.
Does anyone have any advice on how to begin to identify where and why
this is happening?
Thanks,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
reply other threads:[~2010-08-06 16:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m0eiebaird.fsf@gmail.com \
--to=austin.frank@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).