emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Avdi Grimm <groups@inbox.avdi.org>
To: emacs-orgmode@gnu.org
Subject: Problems with source code listings in PDF
Date: Tue, 8 Feb 2011 09:59:55 -0500	[thread overview]
Message-ID: <AANLkTi=Krj2p4__CZD919V4voZn5Q=2CvvqNZGHL-BpQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

I'm working on creating a PDF eBook with Org-Mode, and I'm running
into some difficulty getting them to come out looking decent.

I've followed the directions I found in the list archives for
outputting colorized source code listings. I set
org-export-latex-listings to t, and customized
org-export-latex-packages-alist according to the directions in the
org-export-latex-listings docs.

I'm seeing a few problems with the output:

1. There is no color; only bolded keywords.
2. Listings are formatted in a not-very-well-rendered font with serifs
that just doesn't look good at all.
3. In begin_example sections, spaces are replaced with odd little
curved underscores.

I've attached some examples to show what I mean.

I'm running Org-Mode 7.4 on Ubuntu 10.10 with Emacs 23.1.50.1.

Has anyone had any luck formatting source code and example listings in
PDF output? What I'd really like to get is output identical to the
listings exported to HTML.

Thanks!

--
Avdi Grimm

[-- Attachment #2: example.png --]
[-- Type: image/png, Size: 11291 bytes --]

[-- Attachment #3: listing.png --]
[-- Type: image/png, Size: 18852 bytes --]

[-- Attachment #4: 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:[~2011-02-08 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-08 14:59 Avdi Grimm [this message]
2011-02-08 15:17 ` Problems with source code listings in PDF Eric S Fraga
2011-02-08 15:25 ` Rainer M Krug
2011-02-08 15:47 ` Thomas S. Dye
2011-02-09 13:25   ` Robert Klein

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='AANLkTi=Krj2p4__CZD919V4voZn5Q=2CvvqNZGHL-BpQ@mail.gmail.com' \
    --to=groups@inbox.avdi.org \
    --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).