From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Henney Subject: Re: [org-babel] Bug in org-babel-latex when writing to PDF Date: Mon, 14 Jun 2010 16:22:00 -0500 Message-ID: References: <87iq5liilv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=33000 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOH6Z-0002ZL-EB for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 17:22:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOH6Y-00042P-1I for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 17:22:03 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:34445) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOH6X-00042H-Uh for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 17:22:02 -0400 Received: by iwn1 with SMTP id 1so5098855iwn.0 for ; Mon, 14 Jun 2010 14:22:01 -0700 (PDT) In-Reply-To: <87iq5liilv.fsf@gmail.com> 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: Eric Schulte Cc: emacs-org Hi Eric Thanks for your response On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte wrot= e: > Your code snippet exports as expected for me using the latest version of > Org-mode. > > What values do you have set for the > =A0`org-export-latex-default-packages-alist' and > =A0`org-export-latex-packages-alist' > variables? > > My guess is that the problem could be in a rogue entry in one of those > values. =A0If you'd like to re try with (a subset of) my settings you can > by evaluating the following elisp. I see the error even when I start a vanilla emacs with no customizations. Yes, you are right that org-export-latex-default-packages-alist is the culprit, but the problem is with the default value of this variable. You do not see the problem because you have overwritten that variable to remove the problematic part! The default value of org-export-latex-default-packages-alist, as defined on line 3076 of org.el, begins (("AUTO" "inputenc" t) ("T1" "fontenc" t) ... etc ... This works fine in the normal latex export, since the string AUTO gets replaced by the correct file encoding, but this is not being done in org-babel-latex. It looks like the function that should be used is org-export-latex-fix-inputenc, which is defined in org-latex.el Cheers Will --=20 Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia