Hi,

On Tuesday 21 February 2006 00:22, Paul A. Rubin wrote:
> > How does one change the font that is used (a) for the "LyX-Code"
> > environment, (b) for "typewriter" character markup?
>
> If you mean you want to change LyX-Code globally (for all documents on
> your system), you need to hack the file lyxmacros.inc in the
> ...\Resources\lyx\layouts directory on Windows systems (at least for
> versions 1.3.6 and 1.3.7) or .../share/lyx/layouts on Unix-like systems.

That would be too much hassle: I'm co-editing the same document with 
another person, and (for various reasons) we do this on at least four 
different computers :-(

> In the section beginning "Style LyX-Code" there is a \newenvironment
> command, near the end of which is "\normalfont\ttfamily".  You can
> change \ttfamily to something like \rmfamily or \sffamily (although IMHO
> a monospaced font would seem to be needed here). You should also be
> able to append a size command, for instance
>
> \normalfont\rmfamily\large
>
> or
>
> \normalfont\sffamily\fontsize{9pt}{11pt}.

Yes, basically I'd like a monospaced, narrower and eventually smaller font 
(the common Courier-type is too laaarge for my taste & purpose).

> Changing the typewriter font itself, so that for instance \ttfamily does
> something different from what it does now, is something I think you'll
> have to do with LaTeX commands in the preamble.  Perhaps a LaTeX guru
> (which decidedly excludes me) can help.

Imho this would be the way to go, especially due to said "portability" ... 
something along the line of \renewcommand\ttfont{\mynewfont\small}, but I 
haven't found the right syntax yet ... any ideas?

Cheers,

- Joerg


-- 
joerg.hau(at)dplanet.ch * Lausanne, Switzerland
http://homepage.sunrise.ch/mysunrise/joerg.hau/
"All standard disclaimers apply."
Never take life seriously. You won't get out alive anyway.

Reply via email to