summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fragments/subscript.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-10-26 16:15:15 +0000
committerKarl Berry <karl@freefriends.org>2008-10-26 16:15:15 +0000
commitb4c2d1a32de5fd823fc5793ac152717d23212095 (patch)
tree55b92831c0b4c68ba496cbb99073bd01884ba8b4 /Master/texmf-dist/tex/latex/fragments/subscript.sty
parent719665eeaf4a9ad3504b931721d905f82c530bb2 (diff)
install latex fragments (20oct08)
git-svn-id: svn://tug.org/texlive/trunk@11068 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fragments/subscript.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fragments/subscript.sty18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/fragments/subscript.sty b/Master/texmf-dist/tex/latex/fragments/subscript.sty
new file mode 100644
index 00000000000..fc9f6e34f4c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/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}}}}}