diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty | 94 |
1 files changed, 50 insertions, 44 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty b/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty index 9ed57894c5b..893d6d76609 100644 --- a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty +++ b/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty @@ -11,8 +11,9 @@ %% (C) 2006/2007 Will Robertson %% License information appended %% +%% \ProvidesPackage{xltxtra} - [2007/09/01 v0.3b Improvements for the "XeLaTeX" format] + [2008/03/11 v0.3c Improvements for the "XeLaTeX" format] \newif\if@xxt@nosscript@ \newif\if@xxt@nologos@ \newif\if@xxt@nohyphen@ @@ -151,51 +152,57 @@ \fi \DeclareRobustCommand*\realsubscript[1]{% \begingroup - \c@zf@script 1818326126\relax - \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt - \zf@set@font@type - \ifzf@atsui - \zf@make@aat@feature@string{10}{2}% - \unless\ifx\@tempa\@empty - {\addfontfeature{VerticalPosition=Inferior}#1}% - \else - \fakesubscript{#1}% - \fi - \fi - \ifzf@icu - \zf@check@ot@feat{+subs}% - \if@tempswa - {\addfontfeature{VerticalPosition=Inferior}#1}% - \else - \zf@check@ot@feat{+sinf}% + \ifcsname zf@family@fontdef\f@family\endcsname + \c@zf@script 1818326126\relax + \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt + \zf@set@font@type + \ifzf@icu + \zf@check@ot@feat{+subs}% \if@tempswa - {\addfontfeature{VerticalPosition=ScientificInferior}#1}% + {\addfontfeature{VerticalPosition=Inferior}#1}% + \else + \zf@check@ot@feat{+sinf}% + \if@tempswa + {\addfontfeature{VerticalPosition=ScientificInferior}#1}% + \else + \fakesubscript{#1}% + \fi + \fi + \else\ifzf@atsui + \zf@make@aat@feature@string{10}{2}% + \unless\ifx\@tempa\@empty + {\addfontfeature{VerticalPosition=Inferior}#1}% \else \fakesubscript{#1}% \fi - \fi + \fi\fi + \else + \fakesubscript{#1}% \fi \endgroup} \DeclareRobustCommand*\realsuperscript[1]{% \begingroup - \c@zf@script 1818326126\relax - \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt - \zf@set@font@type - \ifzf@atsui - \zf@make@aat@feature@string{10}{1}% - \unless\ifx\@tempa\@empty - {\addfontfeature{VerticalPosition=Superior}#1}% - \else - \fakesuperscript{#1}% - \fi - \fi - \ifzf@icu - \zf@check@ot@feat{+sups}% - \if@tempswa - {\addfontfeature{VerticalPosition=Superior}#1}% - \else - \fakesuperscript{#1}% - \fi + \ifcsname zf@family@fontdef\f@family\endcsname + \c@zf@script 1818326126\relax + \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt + \zf@set@font@type + \ifzf@icu + \zf@check@ot@feat{+sups}% + \if@tempswa + {\addfontfeature{VerticalPosition=Superior}#1}% + \else + \fakesuperscript{#1}% + \fi + \else\ifzf@atsui + \zf@make@aat@feature@string{10}{1}% + \unless\ifx\@tempa\@empty + {\addfontfeature{VerticalPosition=Superior}#1}% + \else + \fakesuperscript{#1}% + \fi + \fi\fi + \else + \fakesuperscript{#1}% \fi \endgroup} \def\@makefnmark{\mbox{\normalfont\textsuperscript{\@thefnmark}}} @@ -204,16 +211,15 @@ \c@zf@script 1818326126\relax \font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt \zf@set@font@type - \ifzf@atsui - {\addfontfeature{VerticalPosition=Superior}#1}% - \textfractionsolidus - {\addfontfeature{VerticalPosition=Inferior}#2}% - \fi \ifzf@icu {\addfontfeature{VerticalPosition=Numerator}#1}% \textfractionsolidus {\addfontfeature{VerticalPosition=Denominator}#2}% - \fi + \else\ifzf@atsui + {\addfontfeature{VerticalPosition=Superior}#1}% + \textfractionsolidus + {\addfontfeature{VerticalPosition=Inferior}#2}% + \fi\fi \endgroup} \newcommand\namedglyph[1]{% \@tempcnta=\XeTeXglyphindex "#1"\relax |