From 2b3688fbad89d1c57c64903676315a4feed65300 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 19 Oct 2024 10:41:34 +0200 Subject: [PATCH] Formatting. --- docs/news/whats-new-in-babel-24.12.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/news/whats-new-in-babel-24.12.md b/docs/news/whats-new-in-babel-24.12.md index 5ed418e2..0a83ff45 100644 --- a/docs/news/whats-new-in-babel-24.12.md +++ b/docs/news/whats-new-in-babel-24.12.md @@ -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).