Open main menu

Changes

63 bytes added ,  01:32, 4 September 2005
m
Replaced the \ifVeryBoldTT with comments, for simplicity and clarity.
</texcode>
However, instead of requiring that this be defined in each document, ConTeXt also provides the possibility of including it automatically as part of the default font setups. This can be done by putting the following typescript definitions in <code>/usr/share/texmf/tex/context/third/type-loc.tex</code>. The version shown here also includes a switch between uses the newer (and bolder) <code>cmttb10cmbtt</code> and family; to use the newer (and bolder) older <code>cmbttcmttb10</code> familyfonts, uncomment them and comment out the other set.
<texcode>
\newif\ifVeryBoldTT % turn this on, if it's not bold enough:
%\VeryBoldTTtrue
\starttypescript [mono] [computer-modern] [size]
\ifVeryBoldTT% Newer, more-bold version of the bold typewriter fonts.
\definebodyfont [12pt] [tt] [bf=cmbtt10 at 12pt]
\definebodyfont [11pt] [tt] [bf=cmbtt10 at 11pt]
\definebodyfont [9pt] [tt] [bf=cmbtt9]
\definebodyfont [8pt] [tt] [bf=cmbtt8]
\else%% Older, less-bold version of the bold typewriter fonts. % \definebodyfont [12pt] [tt] [bf=cmttb10 at 12pt] % \definebodyfont [11pt] [tt] [bf=cmttb10 at 11pt] % \definebodyfont [10pt] [tt] [bf=cmttb10] % \definebodyfont [9pt] [tt] [bf=cmttb10 at 9pt] % \definebodyfont [8pt] [tt] [bf=cmttb10 at 8pt]\fi
\stoptypescript
</texcode>