diff --git a/lib/Makefile.am b/lib/Makefile.am index 434bb13837..9fc3505e8e 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1309,6 +1309,11 @@ dist_tex_DATA = \ tex/lyxskak.sty \ tex/revtex.cls +# subscript.sty is not in dist_tex_DATA since we don't want to install it +# (it is part of TeXLive). We include it in our source package only so that +# packagers may decide to install it (e.g. for MikTeX). +dist_noinst_DATA += tex/subscript.sty + uidir = $(pkgdatadir)/ui dist_ui_DATA = \ ui/classic.ui \ diff --git a/lib/tex/subscript.sty b/lib/tex/subscript.sty new file mode 100644 index 0000000000..fc9f6e34f4 --- /dev/null +++ b/lib/tex/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}}}}}