summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild/tools/tpm-ctan-check2
-rw-r--r--Master/texmf-dist/doc/latex/onlyamsmath/README50
-rw-r--r--Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.pdfbin0 -> 83057 bytes
-rw-r--r--Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.xml30
-rw-r--r--Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmathtest.tex88
-rw-r--r--Master/texmf-dist/source/latex/onlyamsmath/Makefile56
-rw-r--r--Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.dtx314
-rw-r--r--Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.ins22
-rw-r--r--Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty80
-rw-r--r--Master/texmf-dist/tpm/onlyamsmath.tpm33
-rw-r--r--Master/texmf/lists/onlyamsmath11
-rw-r--r--Master/texmf/tpm/collection-latexextra.tpm1
12 files changed, 686 insertions, 1 deletions
diff --git a/Build/tools/tpm-ctan-check b/Build/tools/tpm-ctan-check
index 3d5756a44f1..1322f4b4669 100755
--- a/Build/tools/tpm-ctan-check
+++ b/Build/tools/tpm-ctan-check
@@ -72,7 +72,7 @@ my @WorkingTPM = qw(
mwcls mwrite
nag natbib nath nature ncclatex ncctools newlfm nih noitcrul
nomencl nomentbl ntgclass ntheorem-vn numline numprint
- oberdiek ocr-latex octavo ofs ogham oldstyle opcit osa
+ oberdiek ocr-latex octavo ofs ogham oldstyle onlyamsmath opcit osa
papercdcase paresse parrun pauldoc pdf-trans pdfcprot
pdfpages pdfscreen pdftex-def perception perltex permute
pgf phaistos pict2e pictex pictex2 pittetd placeins plari plates
diff --git a/Master/texmf-dist/doc/latex/onlyamsmath/README b/Master/texmf-dist/doc/latex/onlyamsmath/README
new file mode 100644
index 00000000000..b614b428cd2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/onlyamsmath/README
@@ -0,0 +1,50 @@
+onlyamsmath.sty
+===============
+
+This package inhibits the usage of plain TeX and on demand of
+standard LaTeX math environments.
+This is useful for class writers who want to force their clients to
+use the environments provided by the amsmath package.
+
+
+Copyright 2001 Harald Harders
+
+This program can be redistributed and/or modified under the terms
+of the LaTeX Project Public License Distributed from CTAN
+archives in directory macros/latex/base/lppl.txt; either
+version 1 of the License, or any later version.
+
+
+
+Installation:
+
+automatic: - run make.
+ - copy onlyamsmath.sty to a place where LaTeX can find it.
+ - run texhash or the corresponding command of your distribution.
+
+by hand: - execute latex on onlyamsmath.ins
+ - execute latex on onlyamsmath.dtx (2x)
+ - execute makeindex -s gind.ist onlyamsmath
+ - execute makeindex -s gglo.ist -o onlyamsmath.gls onlyamsmath.glo
+ - execute latex on onlyamsmath.dtx
+ - copy onlyamsmath.sty to a place LaTeX can find it
+ - run texhash or the corresponding command of your distribution
+
+
+
+To do:
+- ??
+
+
+Change log:
+- 0.01 First version
+- 0.02 Added switch nodollardollar
+- 0.03 Changed definition of \dollarcode, by David Kastrup
+ Removed switches dollardollar and nodollardollar
+- 0.04 Removed code that forbids \[...\]
+
+
+2001-10-04
+Harald Harders
+h.harders@tu-bs.de
+
diff --git a/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.pdf b/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.pdf
new file mode 100644
index 00000000000..8eb10c7b3d0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.xml b/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.xml
new file mode 100644
index 00000000000..2e9e53167c8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmath.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!DOCTYPE entry SYSTEM "../catalogue.dtd">
+<entry id="onlyamsmath"
+ datestamp="2001/10/04"
+ modifier="h.harders@tu-bs.de">
+ <about>
+ <name>onlyamsmath</name>
+ <caption>Inhibit use of TeX resp. LaTeX math environments when using amsmath.sty</caption>
+ <author>
+ <name>Harald Harders</name>
+ <email>h.harders@tu-bs.de</email>
+ </author>
+ <license type="lppl"/>
+ <version>
+ <number>0.04</number>
+ </version>
+ </about>
+ <description>
+ <abstract>
+ This package inhibits the usage of plain TeX and on demand of
+ standard LaTeX math environments.
+ This is useful for class writers who want to force their clients to
+ use the environments provided by the amsmath package.
+ </abstract>
+ </description>
+ <distribution>
+ <texlive>latex3</texlive>
+ <ctan>macros/latex/contrib/supported/onlyamsmath</ctan>
+ </distribution>
+</entry>
diff --git a/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmathtest.tex b/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmathtest.tex
new file mode 100644
index 00000000000..c6a4f3d9ca9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/onlyamsmath/onlyamsmathtest.tex
@@ -0,0 +1,88 @@
+\documentclass[fleqn]{article}
+\usepackage[all,warning]{onlyamsmath}
+%\usepackage[all]{onlyamsmath}
+
+\begin{document}
+\author{Harald Harders}
+\title{Test of the package onlyamsmath.sty}
+
+\maketitle
+\tableofcontents
+\listoffigures
+
+\section{A section title with an embedded equation $\alpha$}
+
+Normal inlined equations $a^2+b^2=c^2$ should work.
+
+Formulars in figures were a problem in version 0.1 and 0.2.
+Test wheather they work now in Fig.~\ref{fig:example}.
+\begin{figure}
+ \centering
+ Test
+ \caption{Here we have formulars $\alpha$, $\beta$, $\vec{a}$.\dots}
+ \label{fig:example}
+\end{figure}
+
+\subsection{Allowed \texttt{amsmath} environments}
+
+The \verb|align| environment is part of \verb|amsmath.sty| and
+therefor works, too:
+\begin{align}
+ \sin^2x + \cos^2x &=1\,,\\
+ \tan\alpha &= \frac{\sin\alpha}{\cos\alpha}\,.
+\end{align}
+\verb|equation| is redefined and allowed:
+\begin{equation}
+ \sin^2x + \cos^2x = 1\,.
+\end{equation}
+\verb|equation*| is defined by \verb|amsmath.sty| and allowed:
+\begin{equation*}
+ \sin^2x + \cos^2x = 1\,.
+\end{equation*}
+\verb|gather|:
+\begin{gather}
+ \sin^2x + \cos^2x =1\,,\\
+ \tan\alpha = \frac{\sin\alpha}{\cos\alpha}\,.
+\end{gather}
+\verb|gather*|:
+\begin{gather*}
+ \sin^2x + \cos^2x =1\,,\\
+ \tan\alpha = \frac{\sin\alpha}{\cos\alpha}\,.
+\end{gather*}
+\verb|multiline|:
+\begin{multline}
+ \sin^2x + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 \\
+ + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + \cos^2x =1\,.
+\end{multline}
+\verb|multiline*|:
+\begin{multline*}
+ \sin^2x + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 \\
+ + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + \cos^2x =1\,.
+\end{multline*}
+\verb|\[| is redefined and works:
+\[
+ \sin^2x + \cos^2x = 1\,.
+\]
+
+
+
+\subsection{Forbidden \TeX\ and \LaTeX\ environments}
+
+\verb|eqnarray| is forbidden:
+\begin{eqnarray}
+ \sin^2x + \cos^2x &=& 1\,.
+\end{eqnarray}
+\verb|eqnarray*| is also forbidden:
+\begin{eqnarray*}
+ \sin^2x + \cos^2x &=& 1\,.
+\end{eqnarray*}
+Same for \verb|displaymath|:
+\begin{displaymath}
+ \sin^2x + \cos^2x = 1\,.
+\end{displaymath}
+And of course \verb|$$| (thanks to David Kastrup):
+$$
+ \sin^2x + \cos^2x = 1\,.
+$$
+
+\end{document}
diff --git a/Master/texmf-dist/source/latex/onlyamsmath/Makefile b/Master/texmf-dist/source/latex/onlyamsmath/Makefile
new file mode 100644
index 00000000000..e194a0fea8c
--- /dev/null
+++ b/Master/texmf-dist/source/latex/onlyamsmath/Makefile
@@ -0,0 +1,56 @@
+# $Id: Makefile,v 1.2 2001/03/12 17:22:36 harders Exp $
+
+.SUFFIXES: .sty .ins .dtx .dvi .ps
+
+
+.ins.sty:
+ latex $<
+
+.dtx.dvi:
+ latex $<
+ latex $<
+ makeindex -s gind.ist $(*D)/$(*F)
+ makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
+ latex $<
+
+.dvi.ps:
+ dvips -o $(*D)/$(*F).ps $(*D)/$(*F)
+
+
+all: onlyamsmath onlyamsmath.dvi onlyamsmath.ps message
+
+onlyamsmathtest.dvi:
+ latex onlyamsmathtest
+
+
+onlyamsmath:
+ latex onlyamsmath.ins
+
+
+
+clean:
+ @-rm -f onlyamsmath.{glo,gls,idx,ilg,ind,aux,log,toc}
+ @-rm -f onlyamsmathtest.{log,aux}
+ @-rm -f *~
+
+distclean: clean
+ @-rm -f onlyamsmath.{sty,dvi,ps}
+ @-rm -f onlyamsmathtest.{dvi,ps}
+
+tar: all clean
+ echo Lege onlyamsmath.tar.gz an
+ -rm -f onlyamsmath.tar.gz
+ cd ..; tar czf onlyamsmath.tar.gz \
+ onlyamsmath/README onlyamsmath/Makefile \
+ onlyamsmath/onlyamsmath.{dtx,ins,dvi} \
+ onlyamsmath/onlyamsmathtest.tex \
+ onlyamsmath/onlyamsmath.xml
+ mv ../onlyamsmath.tar.gz .
+
+
+message:
+ @echo "Please copy onlyamsmath.sty to a directory"
+ @echo "in the LaTeX search path"
+ @echo "Then run \`latex onlyamsmathtest' to see an example"
+
+
diff --git a/Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.dtx b/Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.dtx
new file mode 100644
index 00000000000..f4c1ee14d75
--- /dev/null
+++ b/Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.dtx
@@ -0,0 +1,314 @@
+% \iffalse meta comment
+% File: onlyams.dtx Copyright (C) 2001 Harald Harders
+% $Id:$
+% \fi
+%
+% \iffalse
+%
+%<*package>
+\def\onlyamspackagename{onlyams}
+\def\onlyamsversion{0.04}
+\def\onlyamsfiledate{2001/10/04}
+\def\onlyamsdocdate{2001/10/04}
+%</package>
+%<*driver>
+\documentclass[fleqn]{ltxdoc}
+\usepackage{amsmath}
+\newlength{\tempdima}%
+\makeatletter
+\renewenvironment{table}[1][]{%
+ \@float{table}[#1]%
+ \centering%
+ \setlength{\tempdima}{\abovecaptionskip}%
+ \setlength{\abovecaptionskip}{\belowcaptionskip}%
+ \setlength{\belowcaptionskip}{\tempdima}%
+ }{%
+\end@float
+}
+\makeatother
+\newcommand{\PrintBibliography}{%
+\begin{thebibliography}{9}
+\bibitem{amsmath1999}
+ {\em User's Guide for the amsmath Package}.
+ \newblock American Mathematical Society, 1999/12/13.
+\end{thebibliography}
+}
+\EnableCrossrefs
+\CodelineIndex
+\DoNotIndex{\def,\edef,\let,\newcommand,\newenvironment,\newcounter}
+\DoNotIndex{\setcounter,\space,\begingroup,\endgroup}
+\CodelineNumbered
+\RecordChanges
+\CheckSum{94}
+\begin{document}
+ \title{The \texttt{onlyamsmath} package\thanks{This file is version
+ \onlyamsversion\ last revision \onlyamsfiledate, documentation
+ from \onlyamsdocdate.}}
+ \author{Harald Harders\\\texttt{h.harders@tu-bs.de}}
+ \date{File date \onlyamsfiledate, compiled \today}
+ \DocInput{onlyamsmath.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \changes{0.01}{2001/09/21}{First version}
+%
+% \maketitle
+% \begin{abstract}
+% \noindent
+% This package inhibits the usage of plain \TeX\ and on demand of
+% standard \LaTeX\ math environments.
+% This is useful for class writers who want to force their clients to
+% use the environments provided by the amsmath package.
+% \end{abstract}
+%
+% \tableofcontents
+%
+% \section*{Copyright}
+% Copyright 2001 Harald Harders.
+%
+% This program can be redistributed and/or modified under the terms
+% of the LaTeX Project Public License Distributed from CTAN
+% archives in directory macros/latex/base/lppl.txt; either
+% version 1 of the License, or any later version.
+%
+% \section{Usage of the package}
+%
+% Just load the package using |\usepackage[|options|]{onlyamsmath}|.
+% If no option is given only the plain \TeX\ environment |$$|\dots|$$|
+% is ``destroyed''.
+% This environment leads to centred equations even with the global
+% option |fleqn| (\emph{f}orce \emph{l}eft \emph{eq}uatio\emph{n}s)
+% switched on:
+% $$
+% a=b\,.
+% $$
+%
+% One further option is \verb|eqnarray| to switch off
+% the |eqnarray| and |eqnarray*| environments that add an unwished
+% space before and after the aligned part of the formula as shown
+% here:
+% \begin{eqnarray*}
+% a&=&b\,.
+% \end{eqnarray*}
+% A better result is achieved using the |align| environment provided
+% by |amsmath.sty|:
+% \begin{align*}
+% a&=b\,.
+% \end{align*}
+%
+% The most brutal option is |all| that inhibits the writer to use any
+% of the \TeX\ and \LaTeX\ math environments for non-inlined equations
+% I know (|$$|\dots|$$|, |eqnarray|, |eqnarray*|, |displaymath|.
+% The inlined mathematical modes (|$|\dots|$|, |\(|\dots|\)|) still
+% work.
+%
+% Then instead use the environments provided by |amsmath.sty|:
+% |equation|, |align|, |gather|, |flalign|, |multiline|, |alignat|,
+% and |split|. All environments except |split| have a starred
+% variant. See the User's Guide of the |amsmath| package for further
+% details \cite{amsmath1999}.
+%
+% There are two more options that control the behaviour of the package
+% if you still use one of the ``forbidden'' environments.
+% If using |error| which is the default \LaTeX\ generates an error
+% message that reminds you to use the environments of the |amsmath|
+% package.
+%
+% If using |warning| \LaTeX\ only produces warnings and proceeds.
+%
+% \section*{Acknowledgement}
+%
+% David Kastrup (David.Kastrup@t-online.de) has
+% written the part handling |$$|.
+% I just have changed the call of the command producing the error
+% message.
+% Since I do not understand his code please don't ask me things
+% regarding it.
+%
+% \StopEventually{\PrintBibliography \PrintChanges \PrintIndex}
+%
+% \section{The implementation}
+% \iffalse
+%<*package>
+% \fi
+%
+% Package header:
+% \begin{macrocode}
+\ProvidesPackage{onlyamsmath}[\onlyamsfiledate\space
+v\onlyamsversion\space destroy the standard math environments]
+% \end{macrocode}
+% Load |amsmath| package:
+% \begin{macrocode}
+\RequirePackage{amsmath}
+% \end{macrocode}
+% \subsection{Options}
+% All options set a boolean variable which is named simular to the
+% option name.
+%
+% \changes{0.02}{2001/09/21}{Added switch \texttt{nodollardollar}}%
+% \changes{0.03}{2001/09/22}{Removed switches \texttt{dollardollar}
+% and \texttt{nodollardollar}}%
+% Define the |eqnarray| option:
+% \begin{macrocode}
+\newif\ifonlyams@eqnarray
+\DeclareOption{eqnarray}{\onlyams@eqnarraytrue}
+% \end{macrocode}
+% Define the |all| option:
+% \begin{macrocode}
+\newif\ifonlyams@all
+\DeclareOption{all}{
+ \onlyams@alltrue
+ \onlyams@eqnarraytrue
+}
+% \end{macrocode}
+% Define the |error| and |warning| options:
+% \begin{macrocode}
+\newif\ifonlyams@error
+\onlyams@errortrue
+\DeclareOption{error}{\onlyams@errortrue}
+\DeclareOption{warning}{\onlyams@errorfalse}
+% \end{macrocode}
+% Set the default options:
+% \begin{macrocode}
+\ExecuteOptions{error}
+% \end{macrocode}
+% Process the options:
+% \begin{macrocode}
+\ProcessOptions\relax
+% \end{macrocode}
+% \subsection{Commands}
+%
+% \begin{macro}{\onlyams@error}
+% Define a command that produces the error resp.\ warning messages.
+% The argument specifies the name of the environment that produced the
+% message.
+% \begin{macrocode}
+\newcommand{\onlyams@error}[1]{%
+ \ifonlyams@error
+ \PackageError{onlyamsmath}{Environment #1 used}{Please use only the
+ environments provided by the amsmath package.}%
+ \else
+ \PackageWarning{onlyamsmath}{Environment #1 used, please use
+ \MessageBreak only the environments provided by the amsmath
+ \MessageBreak package}%
+ \fi
+}
+% \end{macrocode}
+% \end{macro}
+% \changes{0.04}{2001/09/23}{Removed code that forbids
+% \texttt{\textbackslash [}\dots\texttt{\textbackslash ]}}%
+%
+% Here follows the part that is only executed when one of the options
+% |eqnarray| or |all| is used:
+% \begin{macrocode}
+\ifonlyams@eqnarray
+% \end{macrocode}
+% \begin{macro}{\onlyams@eqnarray}
+% Copy the original |\eqnarray| command which is called by the commands
+% |\begin{eqnarray}| and |\begin{eqnarray*}| to be able to call it
+% after producing the correspondig error message:
+% \begin{macrocode}
+ \let\onlyams@eqnarray\eqnarray
+% \end{macrocode}
+% \end{macro}
+% \begin{environment}{eqnarray}
+% Redefine the |\eqnarray| command:
+% \begin{macrocode}
+ \def\eqnarray{%
+% \end{macrocode}
+% First generate an error or warning message:
+% \begin{macrocode}
+ \onlyams@error{eqnarray or eqnarray*}%
+% \end{macrocode}
+% Then call the original |eqnarray| environment:
+% \begin{macrocode}
+ \onlyams@eqnarray}
+\fi
+% \end{macrocode}
+% \end{environment}
+% Here follows the part that is only executed when the option |all| is
+% used:
+% \begin{macrocode}
+\ifonlyams@all
+% \end{macrocode}
+% \begin{environment}{displaymath}
+% Redefine the |\displaymath| command:
+% \begin{macrocode}
+ \def\displaymath{%
+% \end{macrocode}
+% First generate an error or warning message:
+% \begin{macrocode}
+ \onlyams@error{displaymath}%
+% \end{macrocode}
+% Then call the |\[| environment which normally is called by the
+% |displaymath| environment:
+% \begin{macrocode}
+ \[}
+% \end{macrocode}
+% \end{environment}
+% \begin{macrocode}
+\fi
+% \end{macrocode}
+% Redefine the |$$| environment.
+% This part wass written by David Kastrup. Please don't ask me anything
+% about it.
+% \changes{0.03}{2001/09/22}{Changed definition of
+% \texttt{\textbackslash dollarcode}, by David Kastrup}%
+% \begin{macro}{\dollarcode}
+% \begin{macrocode}
+\def\dollarcode{\ifx\protect\@typeset@protect
+ \expandafter\futurelet\expandafter\next\expandafter\checkdsp
+ \else \expandafter$\fi}
+% \end{macrocode}
+% \end{macro}
+% \begin{macrocode}
+\begingroup
+\lccode`\~=`\$
+\lowercase{\endgroup\let~}\dollarcode
+% \end{macrocode}
+% \begin{macro}{\defdsp}
+% \begin{macrocode}
+\def\checkdsp{\ifx\next\dollarcode\expandafter\dspcomplain
+ \else\expandafter$\fi}
+% \end{macrocode}
+% \end{macro}
+% Now comes the part that I understand and in which I have made
+% changes.
+% \begin{macro}{\dspcomplain}
+% This command controls the complaint when using |$$|.
+% \begin{macrocode}
+\def\dspcomplain#1{%
+% \end{macrocode}
+% If mathmode is active the code has found the second |$$| of the
+% environment.
+% The complaint has already made and it is not necessary to do
+% generate one.
+% The environment has to be closed by using |\]|:
+% \begin{macrocode}
+ \ifmmode
+ \expandafter \]%
+ \else
+% \end{macrocode}
+% If the mathmode isn't active the first |$$| of a mathematical
+% environment has been found.
+% First generate the warning or error message:
+% \begin{macrocode}
+ \onlyams@error{$$ $$}%
+% \end{macrocode}
+% Then start the mathmode by using |\[|:
+% \begin{macrocode}
+ \expandafter \[
+ \fi}
+% \end{macrocode}
+% \end{macro}
+% Activate the complaining behaviour at |\begin{document}| to ensure
+% that packages that internally use |$$| can do that without an error:
+% \begin{macrocode}
+\AtBeginDocument{\catcode`\$=13 }
+% \end{macrocode}
+% \iffalse
+%</package>
+% \fi
+% \Finale
+
diff --git a/Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.ins b/Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.ins
new file mode 100644
index 00000000000..76dde3650b0
--- /dev/null
+++ b/Master/texmf-dist/source/latex/onlyamsmath/onlyamsmath.ins
@@ -0,0 +1,22 @@
+%% $Id: onlyamsmath.ins,v 1.2 2001/03/12 09:17:56 harders Exp $
+\def\batchfile{onlyamsmath.ins}
+\input docstrip.tex
+\preamble
+
+ onlyamsmath package
+
+ Copyright 2001 Harald Harders
+
+ This program can be redistributed and/or modified under the terms
+ of the LaTeX Project Public License Distributed from CTAN
+ archives in directory macros/latex/base/lppl.txt; either
+ version 1 of the License, or any later version.
+
+ h.harders@tu-bs.de
+
+\endpreamble
+% Files
+%%%%%%%%%%%%%%%%%%%%%%
+\generateFile{onlyamsmath.sty}{f}{\from{onlyamsmath.dtx}{package}}
+
+\Msg{* Fertig}
diff --git a/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty b/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
new file mode 100644
index 00000000000..adece4e23d6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
@@ -0,0 +1,80 @@
+%%
+%% This is file `onlyamsmath.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% onlyamsmath.dtx (with options: `package')
+%%
+%% onlyamsmath package
+%%
+%% Copyright 2001 Harald Harders
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+%% h.harders@tu-bs.de
+%%
+\def\onlyamspackagename{onlyams}
+\def\onlyamsversion{0.04}
+\def\onlyamsfiledate{2001/10/04}
+\def\onlyamsdocdate{2001/10/04}
+\ProvidesPackage{onlyamsmath}[\onlyamsfiledate\space
+v\onlyamsversion\space destroy the standard math environments]
+\RequirePackage{amsmath}
+\newif\ifonlyams@eqnarray
+\DeclareOption{eqnarray}{\onlyams@eqnarraytrue}
+\newif\ifonlyams@all
+\DeclareOption{all}{
+ \onlyams@alltrue
+ \onlyams@eqnarraytrue
+}
+\newif\ifonlyams@error
+\onlyams@errortrue
+\DeclareOption{error}{\onlyams@errortrue}
+\DeclareOption{warning}{\onlyams@errorfalse}
+\ExecuteOptions{error}
+\ProcessOptions\relax
+\newcommand{\onlyams@error}[1]{%
+ \ifonlyams@error
+ \PackageError{onlyamsmath}{Environment #1 used}{Please use only the
+ environments provided by the amsmath package.}%
+ \else
+ \PackageWarning{onlyamsmath}{Environment #1 used, please use
+ \MessageBreak only the environments provided by the amsmath
+ \MessageBreak package}%
+ \fi
+}
+\ifonlyams@eqnarray
+ \let\onlyams@eqnarray\eqnarray
+ \def\eqnarray{%
+ \onlyams@error{eqnarray or eqnarray*}%
+ \onlyams@eqnarray}
+\fi
+\ifonlyams@all
+ \def\displaymath{%
+ \onlyams@error{displaymath}%
+ \[}
+\fi
+\def\dollarcode{\ifx\protect\@typeset@protect
+ \expandafter\futurelet\expandafter\next\expandafter\checkdsp
+ \else \expandafter$\fi}
+\begingroup
+\lccode`\~=`\$
+\lowercase{\endgroup\let~}\dollarcode
+\def\checkdsp{\ifx\next\dollarcode\expandafter\dspcomplain
+ \else\expandafter$\fi}
+\def\dspcomplain#1{%
+ \ifmmode
+ \expandafter \]%
+ \else
+ \onlyams@error{$$ $$}%
+ \expandafter \[
+ \fi}
+\AtBeginDocument{\catcode`\$=13 }
+
+\endinput
+%%
+%% End of file `onlyamsmath.sty'.
diff --git a/Master/texmf-dist/tpm/onlyamsmath.tpm b/Master/texmf-dist/tpm/onlyamsmath.tpm
new file mode 100644
index 00000000000..fdc99bf7248
--- /dev/null
+++ b/Master/texmf-dist/tpm/onlyamsmath.tpm
@@ -0,0 +1,33 @@
+<!DOCTYPE rdf:RDF SYSTEM "../../support/tpm.dtd">
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:TPM="http://texlive.dante.de/">
+ <rdf:Description about="http://texlive.dante.de/texlive/Package/onlyamsmath.zip">
+ <TPM:Name>onlyamsmath</TPM:Name>
+ <TPM:Type>Package</TPM:Type>
+ <TPM:Date>2006/12/31 00:26:01</TPM:Date>
+ <TPM:Version></TPM:Version>
+ <TPM:Creator>karl</TPM:Creator>
+ <TPM:Title>The onlyamsmath package.</TPM:Title>
+ <TPM:Description></TPM:Description>
+ <TPM:Author></TPM:Author>
+ <TPM:Size>100774</TPM:Size>
+ <TPM:License></TPM:License>
+ <TPM:Build/>
+ <TPM:RunFiles size="3435">
+texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
+texmf-dist/tpm/onlyamsmath.tpm
+ </TPM:RunFiles>
+ <TPM:DocFiles size="87504">
+texmf-dist/doc/latex/onlyamsmath/README
+texmf-dist/doc/latex/onlyamsmath/onlyamsmath.pdf
+texmf-dist/doc/latex/onlyamsmath/onlyamsmath.xml
+texmf-dist/doc/latex/onlyamsmath/onlyamsmathtest.tex
+ </TPM:DocFiles>
+ <TPM:SourceFiles size="11091">
+texmf-dist/source/latex/onlyamsmath/Makefile
+texmf-dist/source/latex/onlyamsmath/onlyamsmath.dtx
+texmf-dist/source/latex/onlyamsmath/onlyamsmath.ins
+ </TPM:SourceFiles>
+ <TPM:Provides>Package/onlyamsmath</TPM:Provides>
+ </rdf:Description>
+</rdf:RDF>
+
diff --git a/Master/texmf/lists/onlyamsmath b/Master/texmf/lists/onlyamsmath
new file mode 100644
index 00000000000..8342e753b05
--- /dev/null
+++ b/Master/texmf/lists/onlyamsmath
@@ -0,0 +1,11 @@
+texmf-dist/doc/latex/onlyamsmath/README
+texmf-dist/doc/latex/onlyamsmath/onlyamsmath.pdf
+texmf-dist/doc/latex/onlyamsmath/onlyamsmath.xml
+texmf-dist/doc/latex/onlyamsmath/onlyamsmathtest.tex
+texmf-dist/source/latex/onlyamsmath/Makefile
+texmf-dist/source/latex/onlyamsmath/onlyamsmath.dtx
+texmf-dist/source/latex/onlyamsmath/onlyamsmath.ins
+texmf-dist/tex/latex/onlyamsmath/onlyamsmath.sty
+texmf-dist/tpm/onlyamsmath.tpm
+
+texmf/lists/onlyamsmath
diff --git a/Master/texmf/tpm/collection-latexextra.tpm b/Master/texmf/tpm/collection-latexextra.tpm
index c637d18b51f..e0b58eac10e 100644
--- a/Master/texmf/tpm/collection-latexextra.tpm
+++ b/Master/texmf/tpm/collection-latexextra.tpm
@@ -314,6 +314,7 @@ A large collection of add-on packages for LaTeX.
<TPM:Package name="ocr-latex"/>
<TPM:Package name="octavo"/>
<TPM:Package name="oldstyle"/>
+ <TPM:Package name="onlyamsmath"/>
<TPM:Package name="opcit"/>
<TPM:Package name="outline"/>
<TPM:Package name="outliner"/>