emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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 11:17:48 -0700	[thread overview]
Message-ID: <87iq5liilv.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTim9QXblBFbmGLkoUk6Q2W-nAIjLgUqfVxcXAZbq@mail.gmail.com> (William Henney's message of "Mon, 14 Jun 2010 13:04:18 -0500")

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 <whenney@gmail.com> 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

  reply	other threads:[~2010-06-14 18:18 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 [this message]
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
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=87iq5liilv.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).