Vladimir Prus wrote:
I am not able to make parts of code inside Lyx-code bold. I create empty document, set the style to Lyx-code, type something, then select a line and go to Layout->Charater. I set bold font and it's shown in bold on the screen, but in PS output the line has the same font as other lines.
I've found this report about such problem
http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg23302.html
but it did not help. I've tried setting "Times" font in document settings, and I also have "T1" as default encoding -- both things were suggested as solution. However, it still does not work.
you need a fixed font with bold characters like the one from LuxiMono. Install it or maybe that you have it install. Then write into the preamble:
\usepackage[scaled]{luximono}
\renewcommand{\ttdefault}{ul9}% Luxi Mono
Herbert
-- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
