W3cubDocs

/LaTeX

\DeclareTextCompositeCommand

Synopsis:

\DeclareTextCompositeCommand{cmd}{encoding}{arg}{code}

A more general version of \DeclareTextComposite that runs arbitrary code with cmd.

This allows accents on ‘i’ to act like accents on dotless i, \i.

\DeclareTextCompositeCommand{\'}{OT1}{i}{\'\i}

See fontenc package, for a list of common encodings. Normally cmd will have already been declared with \DeclareTextAccent or as a one argument \DeclareTextCommand.

© 2007–2018 Karl Berry
Public Domain Software
http://latexref.xyz/_005cDeclareTextCompositeCommand.html