mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
Fix font substitutions of Thai documents
The substitutefont package is obsoleted now on TL because the required functionality is in the kernel. See here: https://ctan.org/pkg/substitutefont
This commit is contained in:
parent
1e4f913847
commit
008e1cc963
@ -1522,11 +1522,23 @@ Language thai
|
|||||||
\DeclareRobustCommand{\copyright}{%
|
\DeclareRobustCommand{\copyright}{%
|
||||||
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
|
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
|
||||||
\DeclareTextSymbol{\textcopyright}{LTH}{8}
|
\DeclareTextSymbol{\textcopyright}{LTH}{8}
|
||||||
|
%
|
||||||
% set up Thai fonts as substitue for the default families
|
% set up Thai fonts as substitue for the default families
|
||||||
\usepackage{substitutefont}
|
% The 'substitutefont' package is obsolete now, since commands
|
||||||
\substitutefont{LTH}{\rmdefault}{norasi}
|
% from the LaTeX kernel can be used instead. See here:
|
||||||
\substitutefont{LTH}{\sfdefault}{garuda}
|
% https://ctan.org/pkg/substitutefont
|
||||||
\substitutefont{LTH}{\ttdefault}{ttypist}
|
% 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
|
EndPostBabelPreamble
|
||||||
End
|
End
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user