From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Request for suggestions including source code Date: Wed, 04 May 2011 19:10:16 -0400 Message-ID: <7002.1304550616@alphaville.americas.hpqcorp.net> References: <4DC1BCE7.8060503@sift.info> <3B495FCF-216C-4B81-BC13-DC74B8C401B9@tsdye.com> <6167.1304545481@alphaville.americas.hpqcorp.net> <4DC1CCCF.5070403@sift.info> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHlD2-0000Z4-J4 for emacs-orgmode@gnu.org; Wed, 04 May 2011 19:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHlD1-0002m0-CE for emacs-orgmode@gnu.org; Wed, 04 May 2011 19:10:20 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:13394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHlD1-0002lb-78 for emacs-orgmode@gnu.org; Wed, 04 May 2011 19:10:19 -0400 In-Reply-To: Message from Robert Goldman of "Wed, 04 May 2011 17:01:51 CDT." <4DC1CCCF.5070403@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: nicholas.dokos@hp.com, Org Mode Robert Goldman wrote: > On 5/4/11 May 4 -4:44 PM, Nick Dokos wrote: > > > So there you have it: a frivolous exercise, almost completely OT for the > > list and an almost useless answer[fn:1]. > > This actually was pretty helpful. The problem is, of course, that I > can't rewrite all of my source code to be in 65-width lines, nor can I > convince my colleagues to do so. > Precisely: that's why it was useless :-) I took a quick look at Stevens's "Advanced Programming in the UNIX environment" (which I think of as well-typeset) and I find that most of the time, he adheres to the 65-char limit - there are some comments that go up to 72 or so and stick out a bit into the right margin. But I'm pretty sure he planned it to the 65-char limit. > So what I need now is some way to fix the verbatim environments that are > produced by org-mode to use a smaller font. I.e., instead of trying to > fix the source code to match char-width, fix the char-width to match the > source code. Any idea how to do that? > Here is one possibility: create a verbfont.sty file like this: --8<---------------cut here---------------start------------->8--- \makeatletter \def\verbatim@font{\normalfont\scriptsize\ttfamily} \makeatother --8<---------------cut here---------------end--------------->8--- and add this to your org file: --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \usepackage{verbfont} --8<---------------cut here---------------end--------------->8--- Instead of \scriptsize, you can use any of the ones defined in size1X.clo (for some X). If you use \tiny, you should package a magnifier with the book... Nick