]> git.lyx.org Git - features.git/commitdiff
Help Joost to fix bug #7317
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 21 Feb 2011 19:56:43 +0000 (19:56 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 21 Feb 2011 19:56:43 +0000 (19:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37752 a592a061-630c-0410-9148-cb99ea01b6c8

lib/Makefile.am
lib/tex/subscript.sty [new file with mode: 0644]

index 434bb13837020e6069eee3bfe58ce3eaafbfefcb..9fc3505e8e4682b68d79bb11eaeebb49f04589c3 100644 (file)
@@ -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 (file)
index 0000000..fc9f6e3
--- /dev/null
@@ -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}}}}}