summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-04-14 22:43:44 +0000
committerKarl Berry <karl@freefriends.org>2014-04-14 22:43:44 +0000
commitb44da9d0b33316bf5f6d5401ba7f78b219b3f401 (patch)
treecc8eae8fb18e4edd7078b2285e4a16a996d61c02 /Master/texmf-dist/doc/latex
parentfe900684320c2e37d76c55497935a50a4e97fab6 (diff)
autonum (14apr14)
git-svn-id: svn://tug.org/texlive/trunk@33438 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/autonum/autonum.pdfbin279676 -> 279967 bytes
-rw-r--r--Master/texmf-dist/doc/latex/autonum/test-autonum.pdfbin90483 -> 101725 bytes
-rw-r--r--Master/texmf-dist/doc/latex/autonum/test-autonum.tex47
-rw-r--r--Master/texmf-dist/doc/latex/autonum/test-freeze.tex52
4 files changed, 99 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/autonum/autonum.pdf b/Master/texmf-dist/doc/latex/autonum/autonum.pdf
index ccdb3ce8b28..fb612176019 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 de100cf4665..d60bab22107 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
index 2f2804e0272..adc9300fd55 100644
--- a/Master/texmf-dist/doc/latex/autonum/test-autonum.tex
+++ b/Master/texmf-dist/doc/latex/autonum/test-autonum.tex
@@ -1,5 +1,18 @@
\documentclass{article}
+% Make this document look like endless paper to avoid page breaks, which make some of the tests useless.
+% See http://tex.stackexchange.com/a/27057/7323
+\usepackage{geometry}
+\geometry{paperwidth=20cm,paperheight=\maxdimen,margin=4cm}
+\usepackage{etoolbox}
+\AtBeginDocument{
+ \setbox0=\vbox\bgroup
+ \preto\enddocument{\egroup
+ \dimen0=\dp0
+ \pdfpageheight=\dimexpr\ht0+10cm\relax
+ \unvbox0\kern-\dimen0 }
+}
+
% \usepackage[english,ngerman]{babel}
% \usepackage[utf8]{inputenx}
% \usepackage[utf8x]{inputenx}
@@ -47,6 +60,7 @@
\begin{itemize}
\item Additionally, test that deactivating the package does not result in compile errors during the next run if only basic features are used.
\item Additionally, test that everything works with and without the above inputenx package (after deactivating the very strange label below).
+ \item Additionally, test test-freeze.tex.
\item Having a referenced equation with reference before \ref{referenceBefore}
\begin{equation}\label{referenceBefore}
d - d = 0
@@ -212,6 +226,39 @@
% c\label{gatheredThree}
% \end{gathered}
% \end{equation}
+% \item Placing no number in long equations
+% \begin{equation}
+% \sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum\sum a
+% \end{equation}
+ \item Split with a long line and a \texttt{\textbackslash notag} after ending split has too much spacing afterwards, if the split environment is not patched:
+ \begin{equation}
+ \begin{split}
+ \sum_1^2 a &= 2a\\
+ &= \sum_3^4 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ \end{split}\notag
+ \end{equation}
+ \item Split with a long line and a \texttt{\textbackslash notag} before ending split has correct spacing afterwards:
+ \begin{equation}
+ \begin{split}
+ \sum_1^2 a &= 2a\\
+ &= \sum_3^4 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\notag
+ \end{split}
+ \end{equation}
+ \item Split with a long line should have correct spacing afterwards automatically:
+ \begin{equation}
+ \begin{split}
+ \sum_1^2 a &= 2a\\
+ &= \sum_3^4 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ \end{split}
+ \end{equation}
+ \item Split with a long line should have long spacing afterwards if it is referenced \ref{splitLong}:
+ \begin{equation}\label{splitLong}
+ \begin{split}
+ \sum_1^2 a &= 2a\\
+ &= \sum_3^4 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ \end{split}
+ \end{equation}
+ Note, that the \texttt{\textbackslash label} must not be put inside the \texttt{split} environment, as according to the \AmS-math documentation \texttt{split} provides no numbering.
\end{itemize}
\section{Using ref in section \ref{i1}}\label{i1} text
\ifcleveref{
diff --git a/Master/texmf-dist/doc/latex/autonum/test-freeze.tex b/Master/texmf-dist/doc/latex/autonum/test-freeze.tex
new file mode 100644
index 00000000000..0e0955b06a7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/autonum/test-freeze.tex
@@ -0,0 +1,52 @@
+\documentclass[12pt]{book}
+
+\usepackage{caption}
+\usepackage{autonum}
+
+\begin{document}
+
+ \makeatletter
+ \autonum@patchParametrizedFullEnvironment{figure}%
+% \autonum@patchFullEnvironment{figure}%
+ \makeatother
+
+\ref{eq1}, \ref{fig1}, \ref{eq2}, \ref{fig2}, \ref{sec:xyz}
+
+\begin{figure}[ht]
+\begin{align}\label{eq1}
+x=y
+\end{align}
+\caption{Caption}
+\label{fig1}
+\end{figure}
+
+\subsection{Title}
+\label{sec:xyz}
+
+\begin{figure}[ht]
+\begin{align}\label{eq2}
+y=z
+\end{align}
+\caption{Caption}
+\label{fig2}
+\end{figure}
+
+
+\end{document}
+
+
+% \documentclass{article}
+% \usepackage{caption}
+% \usepackage{autonum}
+%
+% \begin{document}
+% \begin{figure}
+% \begin{align}
+% a
+% \end{align}
+% \end{figure}
+% \begin{figure}
+% b
+% \label{fig2}
+% \end{figure}
+% \end{document} \ No newline at end of file