emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF


From: Eric Schulte
Subject: Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF
Date: Mon, 14 Jun 2010 14:46:03 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

William Henney <address@hidden> writes:

> Hi Eric
>
> Thanks for your response
>
> On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte <address@hidden> wrote:
>> 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.
>
> 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= "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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]