On Tue, Jun 26, 2001 at 04:23:33PM +0200, Claus Hentschel wrote:
> I have succesfully changed the font used in algorithm floats as follows in
> the LyX preamble:
> 
> \newcommand{\algjlst}[1]{%
>     \lstinputlisting[stringspaces=false,frame={},tabsize=3,
>     lineskip=-1pt,extendedchars=true,
>     basicstyle=\fontfamily{pcr}\fontseries{m}\selectfont\footnotesize,
>     labelstep=1,labelstyle=\tiny,indent=2em,language=Java,
>     breaklines]{#1}\vspace{1ex}%
> }
> 
> How can I change the default typesetting font to the font used above??

I guess you meant typewriter font.

Put the following line in the preamble:
\renewcommand{\ttdefault}{pcr}

(you don't need to use the have basicstyle=\fontfamily{pcr} in the \algjlst
command above.)

Alternatively, you can change all font to Postscript fonts by choosing
times or pslatex in the fonts field of the document dialog.

Reply via email to