summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/mh/mathstyle.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/mh/mathstyle.dtx')
-rw-r--r--Master/texmf-dist/source/latex/mh/mathstyle.dtx37
1 files changed, 26 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/mh/mathstyle.dtx b/Master/texmf-dist/source/latex/mh/mathstyle.dtx
index 9c65737aa88..34a1913112d 100644
--- a/Master/texmf-dist/source/latex/mh/mathstyle.dtx
+++ b/Master/texmf-dist/source/latex/mh/mathstyle.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
% Copyright (C) 1997-2003 by Michael J. Downes
-% Copyright (C) 2007 by Morten Hoegholm <mh.ctan@gmail.com>
+% Copyright (C) 2007-2008 by Morten Hoegholm <mh.ctan@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -67,7 +67,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: mathstyle 2007/12/19 v0.84 Mathstyle (MH)}
+\Msg{* Package: mathstyle 2008/07/23 v0.85 Mathstyle (MH)}
\Msg{************************************************************************}
\keepsilent
@@ -78,7 +78,7 @@
This is a generated file.
Copyright (C) 1997-2003 by Michael J. Downes
-Copyright (C) 2007 by Morten Hoegholm <mh.ctan@gmail.com>
+Copyright (C) 2007-2008 by Morten Hoegholm <mh.ctan@gmail.com>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
@@ -128,7 +128,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{mathstyle.drv}%
- [2007/12/19 v0.84 mathstyle (MH)]
+ [2008/07/23 v0.85 mathstyle (MH)]
\documentclass{ltxdoc}
\CodelineIndex
\EnableCrossrefs
@@ -141,7 +141,7 @@ and the derived files
% \fi
%
% \title{The \textsf{mathstyle} package}
-% \date{2007/12/19 v0.84}
+% \date{2008/07/23 v0.85}
% \author{Morten H\o gholm \\\texttt{mh.ctan@gmail.com}}
%
%
@@ -206,7 +206,7 @@ and the derived files
%
% \begin{macrocode}
%<*package>
-\ProvidesPackage{mathstyle}[2007/12/19 v0.84]
+\ProvidesPackage{mathstyle}[2008/07/23 v0.85]
% \end{macrocode}
% \begin{macro}{\@saveprimitive}
% A straight copy from \pkg{breqn}, see implementation details
@@ -384,15 +384,30 @@ and the derived files
% \end{macrocode}
% Finally, we declare the package options.
% \begin{macrocode}
-\DeclareOption{mathactivechars}{\catcode`\^=7\relax \catcode`\_=8\relax }
-\DeclareOption{activechars}{\catcode`\^=13\relax \catcode`\_=13\relax }
+\DeclareOption{mathactivechars}{%
+ \catcode`\^=12\relax
+ \catcode`\_=12\relax}
+\DeclareOption{activechars}{%
+ \catcode`\^=13\relax
+ \catcode`\_=13\relax}
+\DeclareOption{noactivechars}{%
+ \catcode`\^=7\relax
+ \catcode`\_=8\relax}
+\ExecuteOptions{mathactivechars}
\ProcessOptions\relax
+% \end{macrocode}
+% WSPR: Set up the active behaviours: (this is set even in the |noactivechars| case but they are never activated. no worries?)
+% \begin{macrocode}
\ifnum\catcode`\^=13\relax
\let^=\sp \let_=\sb
\else
- \mathcode`\^="8000\relax \mathcode`\_="8000\relax
- \begingroup \catcode`\^=\active \catcode`\_=\active
- \global\let^=\sp \global\let_=\sb
+ \mathcode`\^="8000\relax
+ \mathcode`\_="8000\relax
+ \begingroup
+ \catcode`\^=\active
+ \catcode`\_=\active
+ \global\let^=\sp
+ \global\let_=\sb
\endgroup
\fi
%</package>