emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export
@ 2013-02-07 10:15 Rainer M Krug
  2013-02-07 13:37 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2013-02-07 10:15 UTC (permalink / raw)
  To: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I had the following in my emacs.org:

#+begin_src emacs-lisp
  (require 'org-latex)
  (setq org-export-latex-listings t)
  (add-to-list 'org-export-latex-packages-alist '("" "listings"))
  (add-to-list 'org-export-latex-packages-alist '("" "color"))
#+end_src

After upgrade of org this morning using git, the new exporter is there and I get the following
error message:

(void-variable org-export-latex-packages-alist)

I just commented them out and added

#+LATEX_HEADER: \usepackage{listings}
#+LATEX_HEADER: \usepackage{color}

to the files concerned

In addition, there seems to be a BUG:

when exporting an empty source block to LaTeX, I get the following error message:

org-babel-exp processing... [69 times]
apply: Wrong number of arguments: max, 0

I can easily replicate this with a document only containing:

* org-mode
#+begin_src emacs-lisp

#+end_src

which exports fine to html, but not LaTeX.

Cheers,

Rainer
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRE36oAAoJENvXNx4PUvmCqx0IAMaDyq0GHlIrV6GEAXFAaAGz
nHzlLOsBEhubciZByeyP8f/6clr4rpyNVKz4PSpqAY8dR7mi3jcPxUT7EP449ddr
pQlbXJ+51SCoKDYMszD9jsaxxELq9nShFS09l/HsVsk9tuzTmIa8cft6RiNI5V9v
e5RkFaxlndOZsrR5eRqh9ITvoLlL6OkrCSlP/SPG+ua1J9tSKqi26s0MBAtCHjhx
vg1uHvUOVVLr0eVAcwiJfUyCvBkj7yFdNi8gQmbN+gVDvbyZCcjyZjmvSGiTqfc8
5j+4A4lAzEimAn57WxiKp6IK4qeytny9BKo23iBxhN8COBqyzolehSPOJpIFAjk=
=z3pP
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export
  2013-02-07 10:15 new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export Rainer M Krug
@ 2013-02-07 13:37 ` Nicolas Goaziou
  2013-02-07 14:01   ` Rainer M Krug
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2013-02-07 13:37 UTC (permalink / raw)
  To: Rainer; +Cc: emacs-orgmode

Hello,

Rainer M Krug <r.m.krug@gmail.com> writes:

> Hi
>
> I had the following in my emacs.org:
>
> #+begin_src emacs-lisp
>   (require 'org-latex)
>   (setq org-export-latex-listings t)
>   (add-to-list 'org-export-latex-packages-alist '("" "listings"))
>   (add-to-list 'org-export-latex-packages-alist '("" "color"))
> #+end_src
>
> After upgrade of org this morning using git, the new exporter is there and I get the following
> error message:
>
> (void-variable org-export-latex-packages-alist)

It should be `org-latex-packages-alist', `org-latex-listings'. You also
don't need (and shouldn't) require 'org-latex. Please see:

  http://permalink.gmane.org/gmane.emacs.orgmode/65574

> In addition, there seems to be a BUG:
>
> when exporting an empty source block to LaTeX, I get the following error message:
>
> org-babel-exp processing... [69 times]
> apply: Wrong number of arguments: max, 0
>
> I can easily replicate this with a document only containing:
>
> * org-mode
> #+begin_src emacs-lisp
>
> #+end_src
>
> which exports fine to html, but not LaTeX.

Indeed. It should be fixed now. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export
  2013-02-07 13:37 ` Nicolas Goaziou
@ 2013-02-07 14:01   ` Rainer M Krug
  2013-02-07 14:26     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Rainer M Krug @ 2013-02-07 14:01 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/02/13 14:37, Nicolas Goaziou wrote:
> Hello,
> 
> Rainer M Krug <r.m.krug@gmail.com> writes:
> 
>> Hi
>> 
>> I had the following in my emacs.org:
>> 
>> #+begin_src emacs-lisp (require 'org-latex) (setq org-export-latex-listings t) (add-to-list 
>> 'org-export-latex-packages-alist '("" "listings")) (add-to-list 
>> 'org-export-latex-packages-alist '("" "color")) #+end_src
>> 
>> After upgrade of org this morning using git, the new exporter is there and I get the 
>> following error message:
>> 
>> (void-variable org-export-latex-packages-alist)
> 
> It should be `org-latex-packages-alist', `org-latex-listings'. You also don't need (and 
> shouldn't) require 'org-latex. Please see:
> 
> http://permalink.gmane.org/gmane.emacs.orgmode/65574
> 

Ups - must hae overread that, as I have seen the anouncement...

Sorry

>> In addition, there seems to be a BUG:
>> 
>> when exporting an empty source block to LaTeX, I get the following error message:
>> 
>> org-babel-exp processing... [69 times] apply: Wrong number of arguments: max, 0
>> 
>> I can easily replicate this with a document only containing:
>> 
>> * org-mode #+begin_src emacs-lisp
>> 
>> #+end_src
>> 
>> which exports fine to html, but not LaTeX.
> 
> Indeed. It should be fixed now. Thank you for reporting it.

Thanks - working now.

One observation though: I updated and compiled org while emacs was running, then reloaded it and
tried the export of the empty souce block, and the error was still there although emacs told me
that I had successfully loaded the new version.

I restarted emacs, and the export worked.

Cheers,

Rainer


> 
> 
> Regards,
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRE7PHAAoJENvXNx4PUvmCUhoH/RaZw/+g6NSCAnj0x5FCOETT
hpo3bgom203xcmuTxxRMutuj4C7OwOU44P9zvr4KlJ6F4w3HNfYB+OX36P6MtNVO
dk0//X5x5xrBrxI1UDZAOjGv52Y7kUZCw6nuuwuRhUvIUaJan9tbOHnKXp/cJS3K
YP4EgrQvJ8gGIj2tnK+o9HyVc5pfW3A++GfCFhImUUJ2xT3YIMXoRcziiMhQBDOn
dM6rGegjHXlvVqGiJ0WVuYmtbaZPF6LDxaK3l5j9R4eJLU/pJnJte5uafT7bUJ83
m3lMI+WCU/x78Y8VwxSXBqTt5IWvm/wGvC/rfhr16b9z25lZGxQN5CrixMM6luc=
=NXrO
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export
  2013-02-07 14:01   ` Rainer M Krug
@ 2013-02-07 14:26     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2013-02-07 14:26 UTC (permalink / raw)
  To: Rainer; +Cc: emacs-orgmode

Rainer M Krug <r.m.krug@gmail.com> writes:

> One observation though: I updated and compiled org while emacs was running, then reloaded it and
> tried the export of the empty souce block, and the error was still there although emacs told me
> that I had successfully loaded the new version.
>
> I restarted emacs, and the export worked.

I have updated `org-reload'. It should also reload back-ends. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-07 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07 10:15 new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export Rainer M Krug
2013-02-07 13:37 ` Nicolas Goaziou
2013-02-07 14:01   ` Rainer M Krug
2013-02-07 14:26     ` Nicolas Goaziou

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).