I'm using a type family that supports a semi-bold (
sb) face, and I'd like to use that whenever
\textbf is called for. How can I redefine
\textbf to do this? Can I do it on a per family basis, or only for all families in my document at once?
Fonts are identified by five attributes:
For the first four attributes, LaTeX maintains "default" definitions, contained in
but also other commands
When you call
and doesn't change any of the other attributes.
At a lower level LaTeX maintains also
Your problem seems to be in the fact that the sans serif family has a "semibold" shape that you want to be selected in case
A definition such as
will do the right thing unless you call a family changing command after the switch for bold face. So
would work, while
Another way is to use
and similarly for the typewriter type family.
In case you're using
If you're already using
Globally you can override the default definition of
To do it for a single face, probably the easiest is to have a command like this one (from the base ot1cmtt.fd file)
which substitutes non bold tt font for the bold version, just adjust the arguments for the font family you want to change.