From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Problems with source code listings in PDF Date: Tue, 8 Feb 2011 05:47:35 -1000 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0539571749==" Return-path: Received: from [140.186.70.92] (port=40325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmpnt-0002Fh-2i for emacs-orgmode@gnu.org; Tue, 08 Feb 2011 10:48:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmpnO-0008Nx-G5 for emacs-orgmode@gnu.org; Tue, 08 Feb 2011 10:48:03 -0500 Received: from cpoproxy3-pub.bluehost.com ([67.222.54.6]:55635) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PmpnO-0008Jr-6F for emacs-orgmode@gnu.org; Tue, 08 Feb 2011 10:48:02 -0500 In-Reply-To: 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: Avdi Grimm Cc: emacs-orgmode@gnu.org --===============0539571749== Content-Type: multipart/alternative; boundary=Apple-Mail-96-1045275972 --Apple-Mail-96-1045275972 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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>_______________________________________________ > 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 --Apple-Mail-96-1045275972 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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
<= br>= --Apple-Mail-96-1045275972-- --===============0539571749== 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 --===============0539571749==--