From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Ziegenhagen Subject: Finer control over LaTeX export Date: Tue, 31 Dec 2013 15:02:06 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy0q5-00049p-Vr for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 10:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vy0py-0007Gd-NE for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 10:02:37 -0500 Received: from plane.gmane.org ([80.91.229.3]:56036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy0py-0007GQ-Ge for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 10:02:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vy0pw-0000rx-UQ for emacs-orgmode@gnu.org; Tue, 31 Dec 2013 16:02:29 +0100 Received: from cable-78-34-43-121.netcologne.de ([78.34.43.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Dec 2013 16:02:28 +0100 Received: from ziegenhagen by cable-78-34-43-121.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Dec 2013 16:02:28 +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 everyone, I have short parts of Python code in my org file: #+begin_src python :results value def foo(x): if x>0: return x+1 else: return x-1 return foo(590) #+end_src #+RESULTS: : 591 #+begin_src python :results value return 1+1 #+end_src #+RESULTS: : 2 #+begin_src python :results output print(1+2) #+end_src #+RESULTS: : 3 These get exported to \#+begin$_{\text{src}}$ python :results output print(1+2+3+4+5+6+7+8+9+11) \#+end$_{\text{src}}$ python \begin{verbatim} 56 \end{verbatim} \section{{\bfseries\sffamily TODO} Emacs Artikel zur Code-Evaluation} \label{sec-18} \begin{verbatim} def foo(x): if x>0: return x+1 else: return x-1 return foo(590) \end{verbatim} \begin{verbatim} return 1+1 \end{verbatim} \begin{verbatim} print(1+2) \end{verbatim} How can I define how Org Mode is exporting these snippets? The whole verbatim stuff is "okay", I'd like to replace that with the listings package, but the \#+begin$_{\text{src}}$ python :results output print(1+2+3+4+5+6+7+8+9+11) \#+end$_{\text{src}}$ python requires amsmath just for the \text command, so this is also something I want to change. Can anyone point me to the correct way of changing it. Uwe