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 14:46:03 -0700 Message-ID: <87y6ehcmor.fsf@gmail.com> References: <87iq5liilv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34456 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOHU3-0006Yh-Uf for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 17:46:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOHU0-0008IC-Nf for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 17:46:19 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:41363) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOHU0-0008I7-I2 for emacs-orgmode@gnu.org; Mon, 14 Jun 2010 17:46:16 -0400 Received: by pvg3 with SMTP id 3so32180pvg.0 for ; Mon, 14 Jun 2010 14:46:15 -0700 (PDT) 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 William Henney writes: > Hi Eric > > Thanks for your response > > On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte wr= ote: >> Your code snippet exports as expected for me using the latest version of >> Org-mode. >> >> What values do you have set for the >> =C2=A0`org-export-latex-default-packages-alist' and >> =C2=A0`org-export-latex-packages-alist' >> variables? >> >> My guess is that the problem could be in a rogue entry in one of those >> values. =C2=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! > AH, you're right! I have(had) the following in my customization --8<---------------cut here---------------start------------->8--- ;; pull a bad package out of `org-export-latex-default-packages-alist' (setq org-export-latex-default-packages-alist (mapcar (lambda (el) (if (and (listp el) (string=3D "AUTO" (car el))) (list "" (cadr el)) el)) org-export-latex-default-packages-alist)) --8<---------------cut here---------------end--------------->8--- > > 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 > Great, thanks for hunting this down, I've changed org-babel-latex.el to call the function you mentioned above and everything appears to be working. Many Thanks -- Eric > > Cheers > > Will