Discussion:
Lyx-Code and bold
Vladimir Prus
2004-11-25 15:00:10 UTC
Permalink
Hello,
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.

Any ideas?

TIA,
Volodya
Herbert Voss
2004-11-27 08:51:41 UTC
Permalink
Post by Vladimir Prus
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
Vladimir Prus
2004-11-30 10:26:37 UTC
Permalink
Post by Herbert Voss
Post by Vladimir Prus
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.
\usepackage[scaled]{luximono}
\renewcommand{\ttdefault}{ul9}% Luxi Mono
Hi Herbert,
unfortunately, I did not found that font in Debian, but while searching I
found scalable-cyrfonts package which also provides bold version of tt
fonts and as an additional bonus makes PDF readable in Acroread.

Thanks for the help!


- Volodya

Loading...