From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: 'listings' package used but not required in LaTeX export Date: Sun, 09 Jun 2013 01:52:33 +0200 Message-ID: <871u8cqhxa.fsf@gmail.com> References: <8761xoqtjf.fsf@gmail.com> <87a9n0w5vx.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlSwA-0007WY-So for emacs-orgmode@gnu.org; Sat, 08 Jun 2013 19:52:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlSw9-0007PO-R1 for emacs-orgmode@gnu.org; Sat, 08 Jun 2013 19:52:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:54736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlSw9-0007PF-KU for emacs-orgmode@gnu.org; Sat, 08 Jun 2013 19:52:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UlSw7-0007cY-SI for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 01:52:43 +0200 Received: from g231107190.adsl.alicedsl.de ([92.231.107.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jun 2013 01:52:43 +0200 Received: from tjolitz by g231107190.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jun 2013 01:52:43 +0200 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: emacs-orgmode@gnu.org Rasmus writes: > Thorsten Jolitz 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