\DeclareTextAccentDefault (LaTeX2e unofficial reference manual (November 2018))

Next: \DeclareTextCommand & \ProvideTextCommand, Previous: \DeclareTextAccent, Up: fontenc package [Contents][Index]

#### 4.1.3 `\DeclareTextAccentDefault`

Synopsis:

    \DeclareTextAccentDefault{cmd}{encoding}

If there is an encoding-specific accent command cmd but there is no associated `\DeclareTextAccent` for that encoding then this command will pick up the slack, by saying to use it as described for encoding.

For example, to make the encoding `OT1` be the default encoding for the accent `\"`, declare this.

    \DeclareTextAccentDefault{\"}{OT1}

If you issue a `\"` when the current encoding does not have a definition for that accent then LaTeX will use the definition from `OT1`

That is, this command is equivalent to this call (see \UseTextAccent & \UseTextSymbol).

    \DeclareTextCommandDefault[1]{cmd}
       {\UseTextAccent{encoding}{cmd}{#1}}

Note that `\DeclareTextAccentDefault` works for any one-argument `fontenc` command, not just the accent command.

Unofficial LaTeX2e reference manual