From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Request for suggestions including source code Date: Wed, 04 May 2011 19:11:19 -0500 Message-ID: <4DC1EB27.4020709@sift.info> References: <4DC1BCE7.8060503@sift.info> <3B495FCF-216C-4B81-BC13-DC74B8C401B9@tsdye.com> <6167.1304545481@alphaville.americas.hpqcorp.net> <4DC1CCCF.5070403@sift.info> <7002.1304550616@alphaville.americas.hpqcorp.net> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHmAB-0007yS-JQ for emacs-orgmode@gnu.org; Wed, 04 May 2011 20:11:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHmAA-0004DN-4l for emacs-orgmode@gnu.org; Wed, 04 May 2011 20:11:27 -0400 Received: from mpls.sift.info ([75.146.46.193]:37476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHmA9-0004DH-Sg for emacs-orgmode@gnu.org; Wed, 04 May 2011 20:11:26 -0400 In-Reply-To: <7002.1304550616@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Org Mode On 5/4/11 May 4 -6:10 PM, Nick Dokos wrote: > Robert Goldman wrote: > >> On 5/4/11 May 4 -4:44 PM, Nick Dokos wrote: .... >> 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... Thank you! That was just /exactly/ what I needed. The listings approach seems neat for other cases, but mine is a simpler solution and this nails it. Best, R