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 > >