summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/realscripts
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-19 22:55:13 +0000
committerKarl Berry <karl@freefriends.org>2010-09-19 22:55:13 +0000
commit0f3246084432cce62eeafbf11e702cb4720db9ec (patch)
tree2b671648ce303f467a9d470ec389d037a10bdbfa /Master/texmf-dist/tex/latex/realscripts
parent63653db196b6e47d4fc631c9e850c2b31478fe6f (diff)
realscripts update (19sep10)
git-svn-id: svn://tug.org/texlive/trunk@19811 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/realscripts')
-rw-r--r--Master/texmf-dist/tex/latex/realscripts/realscripts.sty30
1 files changed, 22 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/realscripts/realscripts.sty b/Master/texmf-dist/tex/latex/realscripts/realscripts.sty
index 22658d56dee..be557c70890 100644
--- a/Master/texmf-dist/tex/latex/realscripts/realscripts.sty
+++ b/Master/texmf-dist/tex/latex/realscripts/realscripts.sty
@@ -11,21 +11,28 @@
%% License information appended
%%
\ProvidesPackage{realscripts}
- [2010/08/05 v0.1 Access OpenType subscripts and superscripts]
+ [2010/09/20 v0.2 Access OpenType subscripts and superscripts]
\RequirePackage{fontspec}[2010/05/14 v2.0]
\ExplSyntaxOn
+\cs_if_exist:NTF \textsubscript
+{
+ \cs_set_eq:NN \fakesubscript \textsubscript
+ \cs_set_eq:NN \fakesuperscript \textsuperscript
+}
+{
+ \DeclareDocumentCommand \fakesubscript {m} {
+ \@textsubscript{\selectfont#1}
+ }
+ \DeclareDocumentCommand \fakesuperscript {m} {
+ \@textsuperscript{\selectfont#1}
+ }
+}
\DeclareDocumentCommand \textsubscript {s} {
\IfBooleanTF #1 \fakesubscript \realsubscript
}
\DeclareDocumentCommand \textsuperscript {s} {
\IfBooleanTF #1 \fakesuperscript \realsuperscript
}
-\DeclareDocumentCommand \fakesubscript {m} {
- \@textsubscript{\selectfont#1}
-}
-\DeclareDocumentCommand \fakesuperscript {m} {
- \@textsuperscript{\selectfont#1}
-}
\DeclareDocumentCommand \realsubscript {m} {
\fontspec_if_fontspec_font:TF {
\fontspec_if_opentype:TF
@@ -59,7 +66,14 @@
{ \fakesuperscript{#1} }
}
\cs_set:Npn \@makefnmark {
- \mbox{\normalfont\textsuperscript{\@thefnmark}}
+ \mbox{\footnotemarkfont\textsuperscript{\@thefnmark}}
+}
+\cs_if_exist:NTF \ftntm@font
+{
+ \cs_new:Npn \footnotemarkfont {\ftntm@font}
+}
+{
+ \cs_new:Npn \footnotemarkfont {\normalfont}
}
%%
%% Copyright (C) 2010 by Will Robertson <will.robertson@latex-project.org>