From: "Eric Schulte" <schulte.eric@gmail.com>
To: William Henney <whenney@gmail.com>
Cc: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: [org-babel] Bug in org-babel-latex when writing to PDF
Date: Mon, 14 Jun 2010 14:46:03 -0700 [thread overview]
Message-ID: <87y6ehcmor.fsf@gmail.com> (raw)
In-Reply-To: AANLkTing-eS4wzz6qzSGeCgox0eQyPOHmrbW73Fa0Pu_@mail.gmail.com
William Henney <whenney@gmail.com> writes:
> Hi Eric
>
> Thanks for your response
>
> On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte <schulte.eric@gmail.com> 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
next prev parent reply other threads:[~2010-06-14 21:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 18:04 [org-babel] Bug in org-babel-latex when writing to PDF William Henney
2010-06-14 18:17 ` Eric Schulte
2010-06-14 19:52 ` Sébastien Vauban
2010-06-14 20:32 ` Eric Schulte
2010-06-14 21:22 ` William Henney
2010-06-14 21:46 ` Eric Schulte [this message]
2010-06-15 14:46 ` William Henney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6ehcmor.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=whenney@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).