diff options
Diffstat (limited to 'macros/latex/contrib/fragments/subscript.sty')
-rw-r--r-- | macros/latex/contrib/fragments/subscript.sty | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/latex/contrib/fragments/subscript.sty b/macros/latex/contrib/fragments/subscript.sty new file mode 100644 index 0000000000..fc9f6e34f4 --- /dev/null +++ b/macros/latex/contrib/fragments/subscript.sty @@ -0,0 +1,18 @@ +% subscript.sty +% +% Copyright 1999 Robin Fairbairns +% +% this fragment is distributed under the conditions of the LaTeX +% Project Public Licence -- see lppl.txt in the LaTeX distribution +% +% this fragment provides a command \textsubscript, which is +% shamelessly copied from the command \textsuperscript that's part of +% LaTeX +% +% the fragment may be used as a package in its own right, if so +% needed. + +\DeclareRobustCommand*\textsubscript[1]{% + \@textsubscript{\selectfont#1}} +\def\@textsubscript#1{% + {\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}} |