Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier committed Oct 19, 2024
1 parent e93385f commit 2b3688f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/news/whats-new-in-babel-24.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ files, but it’s executed later and there is no need to a separate file.
`\PassOptionsToLocale` was devised for this hook and its purpose is
what its name suggests. For example, you can write in a class (with
`luatex`).
{% raw %}
```tex
\AddToHook{babel/presets}{%
\PassOptionsToLocale{mapdigits}{sanskrit}%
\PassOptionsToLocale{transforms=punctuation.space}{french}%
}
```
{% endraw %}

Other candidates for `babel/presets` are `\AfterBabelLanguage` and
`\DeclareOption` (although the latter can be somewhat dangerous).
Expand Down

0 comments on commit 2b3688f

Please sign in to comment.