From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [org-babel] Bug in org-babel-latex when writing to PDF Date: Mon, 14 Jun 2010 11:17:48 -0700 Message-ID: <87iq5liilv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=38977 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOEF0-0002KO-Ol for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 14:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOEEV-0004Ud-W3 for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 14:18:09 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:50914) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOEEV-0004UA-R3 for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 14:18:03 -0400 Received: by pva18 with SMTP id 18so6712321pva.0 for ; Mon, 14 Jun 2010 11:18:02 -0700 (PDT) In-Reply-To: (William Henney's message of "Mon, 14 Jun 2010 13:04:18 -0500") 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: William Henney Cc: emacs-org Hi William, Your code snippet exports as expected for me using the latest version of Org-mode. What values do you have set for the `org-export-latex-default-packages-alist' and `org-export-latex-packages-alist' variables? My guess is that the problem could be in a rogue entry in one of those values. If you'd like to re try with (a subset of) my settings you can by evaluating the following elisp. --8<---------------cut here---------------start------------->8--- (setq org-export-latex-default-packages-alist '(("" "inputenc") ("T1" "fontenc" t) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "soul" t) ("" "t1enc" t) ("" "textcomp" t) ("" "marvosym" t) ("" "wasysym" t) ("" "latexsym" t) ("" "amssymb" t) ("" "hyperref" nil) "\\tolerance=1000")) (setq org-export-latex-default-packages-alist '()) --8<---------------cut here---------------end--------------->8--- Best -- Eric William Henney writes: > Hi all > > If I have a snippet like so: > > #+begin_src latex :file foo.png > Hello from org-babel! > #+end_src > > then I can execute the source block with no problems, producing the > image foo.png. > > However, if I change the filename to foo.pdf then it no longer works. > > An intermediate .tex file is produced that contains the line > > \usepackage[AUTO]{inputenc} > > which causes latex to fail. Presumably, the string "AUTO" should have > been expanded to something, but it wasn't. > > This is with yesterday's org-mode and emacs 23.2.1, aquamacs 2.0 > > Cheers > > Will