Previous: \LastDeclaredEncoding, Up: fontenc package [Contents][Index]
\UseTextAccent
& \UseTextSymbol
Synopsis:
\UseTextSymbol{encoding}{cmd}
or:
\UseTextAccent{encoding}{cmd}{text}
Use a symbol or accent not from the current encoding.
In general, to use a fontenc command in an encoding where it is not defined, and if the command has no arguments, then you can use it as here:
\UseTextSymbol{OT1}{\ss}
which is equivalent to this (note the braces forming a group so LaTeX
reverts back to the prior encoding after the \ss
).
{ \fontencoding{OT1}\selectfont\ss }
Similarly, to use a fontenc command in an encoding where it is not defined, and if the command has one argument, you can use it as here:
\UseTextAccent{OT1}{\'}{a}
which is equivalent to this (again note the braces forming a group).
{ fontencoding{OT1}\selectfont\'{\fontencoding{enc_in_use}\selectfont a} }
Here, the encoding in force before this sequence of commands is
end_in_use so that ‘a’ is typeset using the current encoding
and only the accent is taken from OT1
.