From: "Thomas S. Dye" <tsd@tsdye.com>
To: Avdi Grimm <groups@inbox.avdi.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problems with source code listings in PDF
Date: Tue, 8 Feb 2011 05:47:35 -1000 [thread overview]
Message-ID: <BB822D58-6A09-449D-A36C-C62D00229FCC@tsdye.com> (raw)
In-Reply-To: <AANLkTi=Krj2p4__CZD919V4voZn5Q=2CvvqNZGHL-BpQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1684 bytes --]
On Feb 8, 2011, at 4:59 AM, Avdi Grimm wrote:
> 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.
Instructions for setting up different fonts can be found here:
http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-14
Note that some of the fonts clash with the amssymb LaTeX package,
which Org-mode loads by default. You'll want to choose a font that
doesn't clash, or configure Org-mode so the amssymb package isn't
loaded.
All the best,
Tom
> 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
> <
> example
> .png><listing.png>_______________________________________________
> 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
[-- Attachment #1.2: Type: text/html, Size: 2329 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
next prev parent reply other threads:[~2011-02-08 15:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 14:59 Problems with source code listings in PDF Avdi Grimm
2011-02-08 15:17 ` Eric S Fraga
2011-02-08 15:25 ` Rainer M Krug
2011-02-08 15:47 ` Thomas S. Dye [this message]
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=BB822D58-6A09-449D-A36C-C62D00229FCC@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=groups@inbox.avdi.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).