Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

alltt bold problem

460 views
Skip to first unread message

aji...@gmail.com

unread,
Jan 4, 2006, 5:22:03 AM1/4/06
to
Hello,

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

Lars Madsen

unread,
Jan 4, 2006, 5:24:48 AM1/4/06
to

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.

Benoit RIVET

unread,
Jan 4, 2006, 5:40:57 AM1/4/06
to
aji...@gmail.com <aji...@gmail.com> wrote:

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

aji...@gmail.com

unread,
Jan 4, 2006, 6:37:34 AM1/4/06
to
thanks Benoit,

It works.

Robin Fairbairns

unread,
Jan 4, 2006, 10:32:59 AM1/4/06
to
benoit...@libre.fr.invalid (Benoit RIVET) writes:
>txfonts has bold ttfonts. If you just want set the tt font to be txtt,
>just invoke :
>\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? otherwise, it would seem odd that two people would have
recommended the set in less than a week...
--
Robin Fairbairns, Cambridge

Bob Tennent

unread,
Jan 4, 2006, 11:26:03 AM1/4/06
to
On 4 Jan 2006 15:32:59 GMT, Robin Fairbairns wrote:

>>txfonts has bold ttfonts. If you just want set the tt font to be txtt,
>>just invoke :
>>\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?

Why would kerning, whether decent or indecent, be relevant to a
monospaced font?

Walter Schmidt

unread,
Jan 4, 2006, 11:31:33 AM1/4/06
to
Robin Fairbairns schrieb:

>>\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

0 new messages