diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/subtext/subtext.sty')
-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 |