diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-30 20:57:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-30 20:57:40 +0000 |
commit | b9d12717f53791c167188b582d06b829d8e64030 (patch) | |
tree | 7d2573ac44364e14d1359a0a3eed4ad6a8e45c9b /Master/texmf-dist/tex | |
parent | 184789df2ea41c7eef89f9cf529b1dcea369b237 (diff) |
subtext (30may19)
git-svn-id: svn://tug.org/texlive/trunk@51273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/subtext/subtext.sty | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/subtext/subtext.sty b/Master/texmf-dist/tex/latex/subtext/subtext.sty index 3c07899bf74..93920cc94a6 100644 --- a/Master/texmf-dist/tex/latex/subtext/subtext.sty +++ b/Master/texmf-dist/tex/latex/subtext/subtext.sty @@ -16,19 +16,24 @@ %% along with this program. If not, see %% <https://www.gnu.org/licenses/>. -\ProvidesPackage{subtext}[2019/05/24 v. 1.0 LaTeX package for easy +\ProvidesPackage{subtext}[2019/05/30 v. 1.1 LaTeX package for easy text-style subscripts in math mode.] \RequirePackage{amstext} +\def\subtext@font{} +\DeclareOption{upright}{\def\subtext@font{\upshape}} +\DeclareOption{normal}{\def\subtext@font{\normalfont}} +\ProcessOptions* \let\saved@sub_ \catcode`_\active -\def\new@sub@text[#1]{\saved@sub{\text{#1}}} +\def\new@sub@text[#1]{\saved@sub{\text{\subtext@font #1}}} \def\new@sub@other#1{\saved@sub{#1}} \def\new@sub{% \@ifnextchar[%] {\new@sub@text}{\new@sub@other}} -\def_{\new@sub} +\protected\def_{\new@sub} + \endinput
\ No newline at end of file |