From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: [babel] help debugging latex export Date: Fri, 06 Aug 2010 11:00:22 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0491399773==" Return-path: Received: from [140.186.70.92] (port=42524 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhPpJ-0006lJ-0G for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 12:31:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhOPe-0002F3-7J for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 11:00:47 -0400 Received: from lo.gmane.org ([80.91.229.12]:48856) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhOPd-0002Ej-So for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 11:00:46 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OhOPa-0002uj-PV for emacs-orgmode@gnu.org; Fri, 06 Aug 2010 17:00:42 +0200 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Aug 2010 17:00:42 +0200 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Aug 2010 17:00:42 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0491399773== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable 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 tri= als #+LABEL: fig:reg-coef-train #+ATTR_LATEX: width=3D5in, height=3D3in #+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 =3D names, estimate =3D coefs, sd =3D sds, lowe= r =3D coefs - CI, upper =3D coefs + CI) a.coefs.gg <- ggplot(a.coefs, aes(x =3D label, y =3D estimate, ymin =3D lower, ymax =3D upper)) + geom_pointrange() + geom_hline(yintercept =3D 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=3D5in, height=3D3in]{fig-reg-coef-train.png} \caption{\label{fig:reg-coef-train}Regression coefficients from standardize= d 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 =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkxcI4kACgkQlHMl2/XbR4F0GwCg6pyBu88U4BXYVxqdrL7kR3i9 H70AoMLenJt6CnGxZUrDcLSCv4cSEjOK =jvoM -----END PGP SIGNATURE----- --=-=-=-- --===============0491399773== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0491399773==--