summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-23 22:16:55 +0000
committerKarl Berry <karl@freefriends.org>2013-04-23 22:16:55 +0000
commit1ea90739d1ab4cbc99996063321d8d94f05a7ab9 (patch)
tree32ef868faa4105a380184105a771b0dfbd6265ec /Master/texmf-dist/doc
parent2f29eaac5f1a5540c3e514e0f6b828ec29d56caa (diff)
autonum (21apr13)
git-svn-id: svn://tug.org/texlive/trunk@30081 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/autonum/README2
-rw-r--r--Master/texmf-dist/doc/latex/autonum/autonum.pdfbin268974 -> 270863 bytes
-rw-r--r--Master/texmf-dist/doc/latex/autonum/test-autonum.pdfbin72140 -> 87833 bytes
-rw-r--r--Master/texmf-dist/doc/latex/autonum/test-autonum.tex159
4 files changed, 160 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/autonum/README b/Master/texmf-dist/doc/latex/autonum/README
index 661eabefde9..207e6926927 100644
--- a/Master/texmf-dist/doc/latex/autonum/README
+++ b/Master/texmf-dist/doc/latex/autonum/README
@@ -13,4 +13,4 @@ introducing the bug to overwrite long equations with the equation number.
Usage: \usepackage{autonum}
Everything else should happen automatically.
-To use autonum together with other packages, load autonum last. \ No newline at end of file
+To use autonum together with other packages, load autonum last.
diff --git a/Master/texmf-dist/doc/latex/autonum/autonum.pdf b/Master/texmf-dist/doc/latex/autonum/autonum.pdf
index d55c0bf5a61..9c2e211c02a 100644
--- a/Master/texmf-dist/doc/latex/autonum/autonum.pdf
+++ b/Master/texmf-dist/doc/latex/autonum/autonum.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/autonum/test-autonum.pdf b/Master/texmf-dist/doc/latex/autonum/test-autonum.pdf
index 213b1a0e80c..11c8f038e82 100644
--- a/Master/texmf-dist/doc/latex/autonum/test-autonum.pdf
+++ b/Master/texmf-dist/doc/latex/autonum/test-autonum.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/autonum/test-autonum.tex b/Master/texmf-dist/doc/latex/autonum/test-autonum.tex
new file mode 100644
index 00000000000..f5c0797fa73
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/autonum/test-autonum.tex
@@ -0,0 +1,159 @@
+\documentclass{article}
+
+\usepackage{amsmath}
+\usepackage[hypertexnames=false]{hyperref}
+\usepackage{cleveref}
+\usepackage{autonum}
+
+\newcounter{Hequation}
+\renewcommand{\theHequation}{\thechapter.\arabic{Hequation}}
+\makeatletter
+\g@addto@macro\equation{\stepcounter{Hequation}}
+\makeatother
+
+\begin{document}
+
+% \tracingall
+% \makeatletter
+% \show\equation
+% \show\autonum@equationOld
+% \show\mathdisplay
+% \show\mathdisplay@pop
+
+% \begin{equation}\label{dd}a\end{equation}%\ref{dd}
+% % \stop
+% \begin{equation}\label{ee}b\end{equation}
+ \section*{Tests}
+ \begin{itemize}
+ \item Having a referenced equation with reference before \ref{referenceBefore}
+ \begin{equation}\label{referenceBefore}
+ d - d = 0
+ \end{equation}
+ \begin{equation}\label{referenceNo}
+ d - d = 0
+ \end{equation}
+ \ref{b}\begin{equation}\label{a}a\end{equation}\begin{equation}\label{b}b\end{equation}
+ \item Having a referenced equation with reference after
+ \begin{equation}\label{referenceAfter}
+ c^2 = c c
+ \end{equation}
+ \ref{referenceAfter}
+ \item Having an unlabeled equation
+ \begin{equation}\label{abc}
+ a^2 + b^2 = c^2
+ \end{equation}
+ \item Having a labeled, but unreferenced equation
+ \begin{equation}\label{unreferenced}
+ \sqrt{a}
+ \end{equation}
+ \item Having a labeled equation with a very strange label \ref{äöüÄÖÜß?:, 3075µ!/§}
+ \begin{equation}\label{äöüÄÖÜß?:, 3075µ!/§}
+ \sqrt{b}
+ \end{equation}
+ \item Check for spurious whitespace around reference (\ref{checkWhitespace})
+ \begin{equation}\label{checkWhitespace}
+ b_c
+ \end{equation}
+ \item Placing the number in long equations \ref{long}
+ \begin{equation}\label{long}
+ \sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum a
+ \end{equation}
+ \item Printing the number without referencing
+ \begin{equation+}
+ E = mgh
+ \end{equation+}
+ \item Using a ref inside a caption
+ \begin{figure}
+ ref
+ \caption{\ref{long}}
+ \end{figure}
+ \item Using a cref inside a caption
+ \begin{figure}
+ cref
+ \caption{\cref{long}}
+ \end{figure}
+ \item Using cref with one argument
+ \begin{equation}\label{crefOne}
+ g
+ \end{equation}
+ \cref{crefOne}
+ \item Using cref with two arguments
+ \begin{equation}\label{crefTwo}
+ cr = ef
+ \end{equation}
+ \cref{crefOne,crefTwo}
+ \item Using otherwise unused cref with two arguments
+ \[\label{crefThree}
+ cr = ef
+ \]
+ \[\label{crefFour}
+ cr = ef
+ \]
+ \cref{crefThree,crefFour}
+ \item Using align \ref{alignOne}, \ref{alignThree}
+ \begin{align}
+ a\label{alignOne}\\
+ b\label{alignTwo}\\
+ c\label{alignThree}
+ \end{align}
+ \item Using gather \ref{gatherOne}, \ref{gatherThree}
+ \begin{gather}
+ a\label{gatherOne}\\
+ b\label{gatherTwo}\\
+ c\label{gatherThree}
+ \end{gather}
+ \item Using multline without referencing
+ \begin{multline}
+ a\\
+ c\label{multlineUnreferenced}
+ \end{multline}
+ \item Using multline with referencing \ref{multlineReferenced}
+ \begin{multline}
+ a\\
+ c\label{multlineReferenced}
+ \end{multline}
+ \item Using flalign with referencing \ref{flalignReferenced}
+ \begin{flalign}
+ a\\
+ c\label{flalignReferenced}
+ \end{flalign}
+ \item Using alignat with referencing \ref{alignatReferenced}
+ \begin{alignat}{4}
+ x &= yy & \implies & y &= x \label{alignatUnreferenced}\\
+ y &= z & \implies & z &= y \label{alignatReferenced}
+ \end{alignat}
+ \item short one-line shortcut \[n\]
+% \item shortcut environment with two lines, referencing \ref{firstShortcut} \[n_1\label{firstShortcut} \\ n_2\]
+ \item align, numbering always \begin{align+} a=l \end{align+}
+ \item gather, numbering always \begin{gather+} g=a \end{gather+}
+ \item multline, numbering always (and avoiding overfull hbox warning) \begin{multline+} m=u\line(1,0){220}=v \end{multline+}
+ \item equation, numbering always \begin{equation+} e=q \end{equation+}
+ \item shortcut and split \ref{split} \[ \label{split}\begin{split} s \\ p \end{split} \]
+ \item equation and split \ref{splitEquation} \begin{equation} \label{splitEquation}\begin{split} s \\ p \end{split} \end{equation}
+% \item super-short \[\(a+b\\d+e\)\]
+% \item Using aligned \ref{alignedOne}, \ref{alignedThree}
+% \begin{equation}
+% \begin{aligned}
+% a\label{alignedOne}\\
+% b\label{alignedTwo}\\
+% c\label{alignedThree}
+% \end{aligned}
+% \end{equation}
+% \item Using gathered \ref{gatheredOne}, \ref{gatheredThree}
+% \begin{equation}
+% \begin{gathered}
+% a\label{gatheredOne}\\
+% b\label{gatheredTwo}\\
+% c\label{gatheredThree}
+% \end{gathered}
+% \end{equation}
+ \end{itemize}
+ \section{Using ref in section \ref{i1}}\label{i1} text
+ \section{Using cref in \cref{i2}}\label{i2} text
+ \begin{figure}
+ \caption{Ref 2: \cref{i2} and \ref{i2}}
+ \end{figure}
+\tableofcontents
+\listoffigures
+\end{document}
+