emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] 'listings' package used but not required in LaTeX export


From: Thorsten Jolitz
Subject: Re: [O] 'listings' package used but not required in LaTeX export
Date: Sun, 09 Jun 2013 01:52:33 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Rasmus <address@hidden> writes:

> Thorsten Jolitz <address@hidden> writes:
>
>> but there is no 
>>
>> ,----------------------
>> | \usepackage{listings}
>> `----------------------
>
> This is a feature to my understanding.

mmhh ... I would rather say that the defaults can be as simple as
possible (or desired), but should result in reasonable output without
any user interaction. But without adding a \usepackage{listings} or
modifying the variables you mention the LaTeX output is unusable in this
case.

> Several packagess can format, and I for instance prefer pygments if I
> need code formatting.

Then the default should be loading one of them rather than using package
macros in the exported LaTeX sources without loading a package that
contains those macros. 

> You could add listings to your packages list, either
> org-latex-packages-alist or even org-latex-default-packages-alist, if
> you really want to.
>
> You could probably also write a clever filter to load a package if it
> is missing.

I could, and thanks for the tips, but I still think this can be
considered a bug (if I'm not the only one having the problem). 

-- 
cheers,
Thorsten




reply via email to

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