I fail to bold my word using alltt module
\documentclass{article}
\usepackage{alltt} % for normal formating inside verbat
\begin{document}
\begin{alltt}
hello \textbf{hello}
\end{alltt}
\end{document}
Any suggestions?
pujo
standard computer modern has no bold TT-font.
Try using luximono instead, though it does not look good with CM, but better
with darker fonts like palatino.
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal working examples.
txfonts has bold ttfonts. If you just want set the tt font to be txtt,
just invoke :
\renewcommand{\ttdefault}{txtt}
Example :
\documentclass{article}
\usepackage{alltt}
\renewcommand{\ttdefault}{txtt}
\begin{document}
\begin{alltt}
hello \textbf{hello}
\end{alltt}
\end{document}
--
B.R
It works.
this isn't the first txfonts recommendation i've seen recently.
is there a new version out that i've missed, and that has decent
kerning, etc? otherwise, it would seem odd that two people would have
recommended the set in less than a week...
--
Robin Fairbairns, Cambridge
Why would kerning, whether decent or indecent, be relevant to a
monospaced font?
>>\renewcommand{\ttdefault}{txtt}
>
>
> this isn't the first txfonts recommendation i've seen recently.
>
> is there a new version out that i've missed, and that has decent
> kerning, etc?
obviously no, but
* txtt looks really cute,
* the typewriter font isn't affected by spacing problems, AFAIK,
* and using it via \renewcommand\ttdefault... avoids the crappy
txfonts package,
so even I have to admit that the advice isn't as bad as all that
Walter