From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Request for suggestions including source code Date: Wed, 4 May 2011 11:13:06 -1000 Message-ID: <3B495FCF-216C-4B81-BC13-DC74B8C401B9@tsdye.com> References: <4DC1BCE7.8060503@sift.info> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/alternative; boundary=Apple-Mail-32--181127363 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHjNi-0006hh-LE for emacs-orgmode@gnu.org; Wed, 04 May 2011 17:13:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHjNh-00006L-HC for emacs-orgmode@gnu.org; Wed, 04 May 2011 17:13:14 -0400 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:46678) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QHjNh-0008UW-8u for emacs-orgmode@gnu.org; Wed, 04 May 2011 17:13:13 -0400 In-Reply-To: <4DC1BCE7.8060503@sift.info> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: rpgoldman@sift.info Cc: Org Mode --Apple-Mail-32--181127363 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 > > --Apple-Mail-32--181127363 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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:


= --Apple-Mail-32--181127363--