emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Request for suggestions including source code


From: Thomas S. Dye
Subject: Re: [O] Request for suggestions including source code
Date: Wed, 4 May 2011 11:13:06 -1000

Aloha Robert,

Have a look at the listings and minted packages.  You can specify font size on a per-document or per-language basis.  I believe listings has an option to wrap long lines (don't remember this for minted, though). 

The instructions here might be helpful:

http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12_2

hth,
Tom

On May 4, 2011, at 10:53 AM, Robert Goldman wrote:

I have a document that has big chunks of included source code.
Unfortunately, when this is typeset in LaTeX, it typically blows past
the right margin.  I find it quite difficult to determine how many
characters I get in a monospace line in LaTeX, and it seems like LaTeX
won't give me enough to fit in plausible blocks of source code.

Does anyone have a solution to this?  Any way to tell org-mode to shrink
the fontsize when exporting code examples to LaTeX?  More condensed font
to use for typewriter when exporting to LaTeX?  Other tricks of the trade?

Seems like many would have encountered this problem.

Many thanks,
r




reply via email to

[Prev in Thread] Current Thread [Next in Thread]