From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Bug(?) in LaTeX export? Date: Tue, 29 Jan 2013 15:44:54 +0100 Message-ID: <87k3qw2gm1.fsf@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0CQx-0007SA-3D for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 09:45:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0CQw-0002hB-1g for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 09:45:11 -0500 Received: from plane.gmane.org ([80.91.229.3]:36232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0CQv-0002gB-O4 for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 09:45:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U0CR9-0008PN-MF for emacs-orgmode@gnu.org; Tue, 29 Jan 2013 15:45:23 +0100 Received: from g231226168.adsl.alicedsl.de ([92.231.226.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jan 2013 15:45:23 +0100 Received: from tjolitz by g231226168.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jan 2013 15:45:23 +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: emacs-orgmode@gnu.org Hi List, when I export an Org file with Source blocks to LaTeX (:exports code), the blocks are converted into environments of package 'listings': ,---------------------- | \lstset{language=...} | \begin{lstlisting} | (def ... ) | \end{lstlisting} `---------------------- but: 1. the package is not loaded in the preamble (there is no \usepackage{listings}). 2. the language name in {language=XXX} is simply copied from '#+begin_src XXX' and might not be defined in the listings package. Both points cause LaTeX errors. -- cheers, Thorsten