Juergen Spitzmueller wrote:
Guy Hindell wrote:
There is one odd side effect though - the \baseskip spacing appears to
still be what it would have been at the normal font size, so verbatim
blocks look more spread out than they did previously by using
\footnotesize. Is there anything I can do about this? Can I fiddle with
the verbatim environment?
No idea really. You could try to change the linespacing of those paragraphs
to 0.8\baselineskip (with setspace, i.e. paragraph->line spacing).
Jürgen
OK, having read (but probably only half understood) the documentation
for the verbatim package it looks like I can get what I want by a
combination of tweaks:
Using couriers.sty to scale typewriter font to 96% gets the best balance
between times roman and courier for situations where they appear
together (e.g. file paths or urls used in a body of normal text) - at
80% typewriter looks too small.
Redefine [EMAIL PROTECTED] to use \footnotesize automatically for all
verbatim environments.
\makeatletter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\makeatother
This gives an acceptable interline spacing, and fits 80 characters
between the margins in an a4wide page layout.
Using this along with the moreverb.sty package to add tab aware verbatim
environments works very nicely for including source listings or doxygen
output (although in fact the rather old version of doxygen I'm using
tries to set the font size for iteself before using the verbatim
environment, but it doesn't matter).
One additional hack I've had to make is to the LyXCode environment to
get that to also use \footnotesize - I wonder why this environment
doesn't use verbatim, or indeed, why there isn't a verbatim environment
available through LyX.
cheers
guy