diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-11 22:35:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-11 22:35:29 +0000 |
commit | 01f3d11f566adcadedd4374cf8c6aaeacd975d21 (patch) | |
tree | 6827295bfc8ee3e26232d1f923246a8303c2df9c /Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex | |
parent | 9a6724bc689081762a2dd8faecca766353c0c40b (diff) |
polyglossia (9apr20)
git-svn-id: svn://tug.org/texlive/trunk@54664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex b/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex index 67eec479ec5..92cc3179b7d 100644 --- a/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex +++ b/Master/texmf-dist/doc/latex/polyglossia/polyglossia.tex @@ -1821,6 +1821,17 @@ For instance, to add a new caption \cmd\footnotename\ to the Swiss variety of Ge If you do this in a document preamble rather than in a package, you need to embrace the redefinition by \cmd\makeatletter\ and \cmd\makeatother\ due to the ¦@¦ in the macro names. +Finally, as soon as the language has been switched (either inline or as a block), \pkg{polyglossia} +executes the (by default empty) hook +\begin{itemize} + \item \Cmd{\polyglossia@language@switched} +\end{itemize} +to which you can append arbitrary code (via \cmd\gappto) that should be executed if (a particular) +language is being activated. This is done before any of the above +macros are issued (so you can still alter them), but at a point where \cmd\languagename, \cmd\babelname\ +and \cmd\languageid\ are already set, so you can condition on specific languages in your code. +This hook is particularly provided for package authors. + \section{Script-specific numbering} Languages and scripts have specific numbering conventions. Some use decimal digits |