On 5/4/11 May 4 -6:10 PM, Nick Dokos wrote:
> Robert Goldman <rpgold...@sift.info> 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

Reply via email to