summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/xltxtra/xltxtra.sty (renamed from Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty)74
1 files changed, 2 insertions, 72 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty b/Master/texmf-dist/tex/latex/xltxtra/xltxtra.sty
index ad8f6ce110d..7c4ee541468 100644
--- a/Master/texmf-dist/tex/xelatex/xltxtra/xltxtra.sty
+++ b/Master/texmf-dist/tex/latex/xltxtra/xltxtra.sty
@@ -11,7 +11,7 @@
%% License information appended
%%
\ProvidesPackage{xltxtra}
- [2010/06/03 v0.5d Improvements for the "XeLaTeX" format]
+ [2010/09/20 v0.5e Improvements for the "XeLaTeX" format]
\RequirePackage{ifluatex}
\ifluatex
\PackageWarningNoLine {xltxtra} {^^J
@@ -25,7 +25,7 @@
\RequirePackage{ifxetex}
\RequireXeTeX
\RequirePackage{fontspec}[2010/05/14 v2.0]
-\RequirePackage{xunicode}
+\RequirePackage{realscripts}
\newif\if@xxt@nosscript@
\newif\if@xxt@nologos@
\DeclareOption{no-sscript}{\@xxt@nosscript@true}
@@ -49,83 +49,13 @@
\setlogokern{La}{#4}%
\setlogokern{aT}{#5}%
\setlogokern{eL}{#6}}
-\DeclareRobustCommand*\fakesubscript[1]{%
- \@textsubscript{\selectfont#1}}
-\DeclareRobustCommand*\fakesuperscript[1]{%
- \@textsuperscript{\selectfont#1}}
\if@xxt@nosscript@
\DeclareRobustCommand*\textsubscript{%
\@ifstar{\realsubscript}{\fakesubscript}}
\DeclareRobustCommand*\textsuperscript{%
\@ifstar{\realsuperscript}{\fakesuperscript}}
-\else
- \DeclareRobustCommand*\textsubscript{%
- \@ifstar{\fakesubscript}{\realsubscript}}
- \DeclareRobustCommand*\textsuperscript{%
- \@ifstar{\fakesuperscript}{\realsuperscript}}
\fi
\ExplSyntaxOn
-\DeclareRobustCommand*\realsubscript[1]{
- \fontspec_if_fontspec_font:TF
- {
- \fontspec_if_opentype:TF
- {
- \fontspec_if_feature:nTF {+subs}
- {
- {\addfontfeature{VerticalPosition=Inferior}#1}
- }
- {
- \fontspec_if_feature:nTF {+sinf}
- {
- {\addfontfeature{VerticalPosition=ScientificInferior}#1}
- }
- {
- \fakesubscript{#1}
- }
- }
- }
- {
- \fontspec_if_aat_feature:nnTF {10} {2}
- {
- {\addfontfeature{VerticalPosition=Inferior}#1}
- }
- {
- \fakesubscript{#1}
- }
- }
- }
- {
- \fakesubscript{#1}
- }
-}
-\DeclareRobustCommand*\realsuperscript[1]{
- \fontspec_if_fontspec_font:TF
- {
- \fontspec_if_opentype:TF
- {
- \fontspec_if_feature:nTF {+sups}
- {
- {\addfontfeature{VerticalPosition=Superior}#1}
- }
- {
- \fakesuperscript{#1}
- }
- }
- {
- \fontspec_if_aat_feature:nnTF {10} {1}
- {
- {\addfontfeature{VerticalPosition=Superior}#1}
- }
- {
- \fakesuperscript{#1}
- }
- }
- }
- {
- \fakesuperscript{#1}
- }
-}
-\def\@makefnmark{\mbox{\normalfont\textsuperscript{\@thefnmark}}}
\newcommand*\vfrac[2]{
\fontspec_if_fontspec_font:TF
{