W3cubDocs

/LaTeX

\LastDeclaredEncoding

Synopsis:

\LastDeclaredEncoding

Get the name of the most recently declared encoding. The \DeclareFontEncoding command stores the name so that it can be retrieved with this command (see \DeclareFontEncoding).

This relies on \LastDeclaredEncoding rather than give the name of the encoding explicitly.

\DeclareFontEncoding{JH1}{}{}
\DeclareTextAccent{\'}{\LastDeclaredEncoding}{0}

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