# XindyName <xindyname>
# ActiveChars <activated characters>
# QuoteStyle <british|danish|english|french|frenchin|
-# german|polish|russian|swedish|swedishg|swiss|plain>
+# german|polish|russian|swedish|swedishg|swiss|hebrew|plain>
# DateFormats "<long>|<medium>|<short>"
# Encoding <encoding>
# FontEncoding <font encoding|font encoding|...>
InternalEncoding true
# babel-hebrew expects the encoding for *other* languages last:
FontEncoding HE8,T1|LHE,T1
- ## Use font encoding HE8 if the Culmus fonts are installed and
- # work around to simple test for article-like classes in rlbabel.def.
- PreBabelPreamble
- \IfFileExists{he8david.fd}{%
- \providecommand{\HeblatexEncoding}{HE8}
- \providecommand{\HeblatexEncodingFile}{he8enc}%
- }{}
- \providecommand{\l@chapter}{\relax}
- EndPreBabelPreamble
DateFormats "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
RTL true
LangCode he_IL
LangCode es_ES
PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>}}
+ \deactivatequoting
EndPostBabelPreamble
End
LangCode es_MX
PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>.}}
+ \deactivatequoting
EndPostBabelPreamble
End
\DeclareRobustCommand{\copyright}{%
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
\DeclareTextSymbol{\textcopyright}{LTH}{8}
+ %
% set up Thai fonts as substitue for the default families
- \usepackage{substitutefont}
- \substitutefont{LTH}{\rmdefault}{norasi}
- \substitutefont{LTH}{\sfdefault}{garuda}
- \substitutefont{LTH}{\ttdefault}{ttypist}
+ % The 'substitutefont' package is obsolete now, since commands
+ % from the LaTeX kernel can be used instead. See here:
+ % https://ctan.org/pkg/substitutefont
+ % https://www.latex-project.org/news/latex2e-news/ltnews31.pdf
+ \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
+ \IfFormatAtLeastTF{2020/02/01}{%
+ \DeclareFontFamilySubstitution{LTH}{\rmdefault}{norasi}
+ \DeclareFontFamilySubstitution{LTH}{\sfdefault}{garuda}
+ \DeclareFontFamilySubstitution{LTH}{\ttdefault}{ttypist}
+ }{%
+ \usepackage{substitutefont}
+ \substitutefont{LTH}{\rmdefault}{norasi}
+ \substitutefont{LTH}{\sfdefault}{garuda}
+ \substitutefont{LTH}{\ttdefault}{ttypist}
+ }
EndPostBabelPreamble
End