emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Michael Bernhard Arp Sørensen" <michael@arpsorensen.dk>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Latex export with python source code included.
Date: Sun, 31 Jan 2010 11:40:56 +0100	[thread overview]
Message-ID: <1618521001310240l77b87a59hb81c0c05046a64d2@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 602 bytes --]

Hi all.

How do I make sure that latex package "listings" 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 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ørensen
Programmer / BOFH

[-- Attachment #1.2: Type: text/html, Size: 1112 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2010-01-31 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-31 10:40 Michael Bernhard Arp Sørensen [this message]
2010-01-31 19:55 ` Latex export with python source code included Pierre de Buyl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618521001310240l77b87a59hb81c0c05046a64d2@mail.gmail.com \
    --to=michael@arpsorensen.dk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).