From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Michael_Bernhard_Arp_S=C3=B8rensen?= Subject: Latex export with python source code included. Date: Sun, 31 Jan 2010 11:40:56 +0100 Message-ID: <1618521001310240l77b87a59hb81c0c05046a64d2@mail.gmail.com> Reply-To: michael@arpsorensen.dk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1945671163==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbXEl-0004o5-Pu for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 05:41:03 -0500 Received: from [199.232.76.173] (port=56898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbXEk-0004nq-0t for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 05:41:02 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbXEj-0007hP-1M for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 05:41:01 -0500 Received: from exprod7og104.obsmtp.com ([64.18.2.161]:54307) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NbXEi-0007hD-L6 for emacs-orgmode@gnu.org; Sun, 31 Jan 2010 05:41:00 -0500 Received: by ewy21 with SMTP id 21so3186530ewy.2 for ; Sun, 31 Jan 2010 02:40:57 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============1945671163== Content-Type: multipart/alternative; boundary=0016e6d7e925f1f3c6047e7380c8 --0016e6d7e925f1f3c6047e7380c8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all. How do I make sure that latex package "listings" is used and how do I use i= t to show the content of a python-file? I want to include some python code, but it's all ugly when outputtet to PDF Is there a better way to show source code in org? At the moment I'm using: #+INCLUDE: "matrix-citizen.07.py" src python. Looks bad in PDF-exports. I tried using: #+begin_src python print "Hello World!" #+end_src But then I have to cut and paste ALL my code while I'd rather just include the code. Med venlig hilsen/Kind regards Michael B. Arp S=C3=B8rensen Programmer / BOFH --0016e6d7e925f1f3c6047e7380c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all.

How do I make sure that latex package "list= ings" is used and how do I use it to show the content of a python-file= ?

I want to include some python code, but it's= all ugly when outputtet to PDF

Is there a better way to show source code in org? At th= e moment I'm using:=C2=A0#+INCLUDE: "matrix-citizen.07.py" src python. Looks bad in PDF-expo= rts.

I tried using:=C2=A0

#+begin_s= rc python
print "Hello World!"
#+end_src

But then I have to cut and p= aste ALL my code while I'd rather just include the code.

Med venlig hilsen/Kind regards

Michael B. Arp S=C3=B8rensen
Progr= ammer / BOFH
--0016e6d7e925f1f3c6047e7380c8-- --===============1945671163== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1945671163==--