From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: new exporter - LaTeX export setting org-export-latex-packages-alist and BUG empty source block export Date: Thu, 07 Feb 2013 14:37:57 +0100 Message-ID: <87d2wckzwq.fsf@gmail.com> References: <51137EA8.5020603@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3RgA-0006eD-6o for emacs-orgmode@gnu.org; Thu, 07 Feb 2013 08:38:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3Rg9-00053C-0g for emacs-orgmode@gnu.org; Thu, 07 Feb 2013 08:38:18 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:40982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Rg8-000530-PV for emacs-orgmode@gnu.org; Thu, 07 Feb 2013 08:38:16 -0500 Received: by mail-we0-f169.google.com with SMTP id t11so2120478wey.0 for ; Thu, 07 Feb 2013 05:38:15 -0800 (PST) In-Reply-To: <51137EA8.5020603@gmail.com> (Rainer M. Krug's message of "Thu, 07 Feb 2013 11:15:04 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer@krugs.de Cc: emacs-orgmode Hello, Rainer M Krug 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