Bold typewriter

From Wiki
Revision as of 20:39, 6 August 2004 by Brooks (talk | contribs) (Added note about the change of fonts from cmttb to cmbtt, changed wording around it slightly.)
Jump to navigation Jump to search

< From LaTeX to ConTeXt


\texttt{Normal and \textbf{bold Typewriter.}}

ConTeXt: Put this in /usr/share/texmf/tex/context/third/type-loc.tex to define the bold typewriter fonts:

\starttypescript [mono] [computer-modern] [size]
\definebodyfont [12pt] [tt] [bf=cmbtt10 at 12pt]
\definebodyfont [11pt] [tt] [bf=cmbtt10 at 11pt]
\definebodyfont [10pt] [tt] [bf=cmbtt10]
\definebodyfont [9pt] [tt] [bf=cmbtt9]
\definebodyfont [8pt] [tt] [bf=cmbtt8]

(Note that this is using the more recent cmbtt[8,9,10] family of fonts, rather than the older cmttb10 font used in the LaTeX example.)

Then, the fonts can be accessed as in this example:

{\tt Normal and \bf bold Typewriter.}