diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty b/Master/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty index f990db9fd3b..f14583eae70 100644 --- a/Master/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty +++ b/Master/texmf-dist/tex/xelatex/polyglossia/polyglossia.sty @@ -1,11 +1,10 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{polyglossia}[2010/07/15 v1.2.0 +\ProvidesPackage{polyglossia}[2010/07/27 v1.2.0a Babel replacement for XeLaTeX] \RequirePackage{etoolbox} \RequirePackage{makecmds} \RequirePackage{fontspec}[2010/06/08]% v2.0 % fontspec now uses LaTeX3 packages such as expl3, so we need this: -% TODO is is possible to localize this further? \ExplSyntaxOn \ifcsundef{newXeTeXintercharclass}{% @@ -457,7 +456,7 @@ \IfFileExists{gloss-#2.ldf}% {\ifcsundef{#2@loaded}% {\input{gloss-#2.ldf}% - \xpg@info{Default~ language~ is~ #2.} + \xpg@info{Default~ language~ is~ #2}% \def\languagename{#2}% % This is needed because \arabic is a built-in LaTeX command: % so now we have \begin{Arabic}... instead of \begin{arabic}... @@ -505,7 +504,13 @@ \selectlanguage[#1]{#2}% \selectbackgroundlanguage{#2}}} -\def\familytype{rm} +\expandafter\ifx\familydefault\sfdefault + \def\familytype{sf} +\else\expandafter\ifx\familydefault\ttdefault + \def\familytype{tt} +\else + \def\familytype{rm} +\fi\fi % This robustifies the redefinitions of \<xx>family (suggestion by Enrico Gregorio) % e.g. to prevent expansion of the \familytype redefinition in auxiliary files \csgappto{rmfamily }{\def\familytype{rm}} |