diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/realscripts')
-rw-r--r-- | Master/texmf-dist/tex/latex/realscripts/realscripts.sty | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/realscripts/realscripts.sty b/Master/texmf-dist/tex/latex/realscripts/realscripts.sty index 84cf7236651..afda375cb42 100644 --- a/Master/texmf-dist/tex/latex/realscripts/realscripts.sty +++ b/Master/texmf-dist/tex/latex/realscripts/realscripts.sty @@ -11,7 +11,7 @@ %% License information appended %% \ProvidesPackage{realscripts} - [2013/02/27 v0.3b Access OpenType subscripts and superscripts] + [2013/03/18 v0.3c Access OpenType subscripts and superscripts] \RequirePackage{fontspec} \ExplSyntaxOn \DeclareDocumentCommand \fakesubscript {m} { @@ -69,6 +69,7 @@ \cs_new:Npn \footnotemarkfont {\normalfont} } \DeclareDocumentCommand \textsubsuperscript {s O{l} mm} { + \leavevmode \group_begin: \IfBooleanTF #1 { @@ -83,7 +84,7 @@ { \box_move_down:nn \subsupersep {\box_use:N \l_tmpa_box} } \hbox_set:Nn \l_tmpb_box { \box_move_up:nn \subsupersep {\box_use:N \l_tmpb_box} } - \prg_case_str:nnn {#2} + \str_case:nnn {#2} { {l}{\use_i:nnn} {c}{\use_ii:nnn} @@ -136,7 +137,9 @@ \group_end: } \DeclareDocumentCommand \textsupersubscript {s O{l} mm} { - \textsubsuperscript #1 [#2] {#3} {#2} + \IfBooleanTF #1 + { \textsubsuperscript * [#2] {#4} {#3} } + { \textsubsuperscript [#2] {#4} {#3} } } \dim_new:N \subsupersep %% |