aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-09-24 22:25:07 +0200
committerJohn MacFarlane <[email protected]>2025-09-24 22:25:07 +0200
commit95326e21e6502612ddfcadb59714825aead8a70e (patch)
tree60d13b5fa145dd1ef76fd0ae52ac4201f79153b7 /data
parent9024df9348ce38741777296a5845b39539a90acf (diff)
Add `shorthands` variable for LaTeX output.
If true, pandoc will allow language-specific shorthands when loading babel. Closes #11160.
Diffstat (limited to 'data')
-rw-r--r--data/templates/common.latex4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/common.latex b/data/templates/common.latex
index 5f32758ed..46c32823f 100644
--- a/data/templates/common.latex
+++ b/data/templates/common.latex
@@ -183,9 +183,9 @@ $-- Babel language support
$--
$if(lang)$
\ifLuaTeX
-\usepackage[bidi=basic,shorthands=off,$for(babeloptions)$,$babeloptions$$endfor$]{babel}
+\usepackage[bidi=basic$if(shorthands)$$else$,shorthands=off$endif$$for(babeloptions)$,$babeloptions$$endfor$]{babel}
\else
-\usepackage[bidi=default,shorthands=off,$for(babeloptions)$,$babeloptions$$endfor$]{babel}
+\usepackage[bidi=default$if(shorthands)$$else$,shorthands=off$endif$$for(babeloptions)$,$babeloptions$$endfor$]{babel}
\fi
$if(babel-lang)$
$if(mainfont)$