summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-01-11 23:07:51 +0000
committerKarl Berry <karl@freefriends.org>2017-01-11 23:07:51 +0000
commitb9cc4194bebb9019fd2deb2dae0e606f8ef01e69 (patch)
treea343863d284f9c839fc6f5d5c230396ea2867241 /Master/texmf-dist/tex/latex
parent1678088b3d54bb6467925eb602c30d87fedda544 (diff)
onlyamsmath (11jan17)
git-svn-id: svn://tug.org/texlive/trunk@42927 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty b/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
index 1dd37ecf289..457ce7c5e6c 100644
--- a/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
+++ b/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
@@ -8,7 +8,7 @@
%%
%% onlyamsmath package
%%
-%% Copyright 2001, 2012 Harald Harders
+%% Copyright 2001, 2012, 2016 Harald Harders
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
@@ -18,7 +18,7 @@
%% harald.harders@gmx.de
%%
\ProvidesPackage{onlyamsmath}
- [2012/01/01 v0.10 Destroy the standard math environments]
+ [2016/12/18 v0.20 Destroy the standard math environments]
\RequirePackage{amsmath}
\newif\ifonlyams@eqnarray
\DeclareOption{eqnarray}{\onlyams@eqnarraytrue}
@@ -31,6 +31,8 @@
\onlyams@errortrue
\DeclareOption{error}{\onlyams@errortrue}
\DeclareOption{warning}{\onlyams@errorfalse}
+\newif\ifonlyams@nodollardollar
+\DeclareOption{nodollardollar}{\onlyams@nodollardollartrue}
\ExecuteOptions{error}
\ProcessOptions\relax
\newcommand{\onlyams@error}[1]{%
@@ -69,7 +71,10 @@
\onlyams@error{$$ $$}%
\expandafter \[
\fi}
-\AtBeginDocument{\catcode`\$=13 }
+\ifonlyams@nodollardollar
+\else
+ \AtBeginDocument{\catcode`\$=13 }
+\fi
\endinput
%%