summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/onlyamsmath
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-31 22:36:12 +0000
committerKarl Berry <karl@freefriends.org>2006-12-31 22:36:12 +0000
commit4bce4544a9d409cae7156a9e8ec7c5cd83d03aee (patch)
tree40be61d36f6017c972004b7ebfe375423bb410e1 /Master/texmf-dist/doc/latex/onlyamsmath
parente7c4147cc5e3ed9a9baa218d7eebad637ff38800 (diff)
new (old) package onlyamsmath
git-svn-id: svn://tug.org/texlive/trunk@3067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/onlyamsmath')
-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
4 files changed, 168 insertions, 0 deletions
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}