summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/autonum/test-autonum.tex
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/autonum/test-autonum.tex
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/autonum/test-autonum.tex')
-rw-r--r--Master/texmf-dist/doc/latex/autonum/test-autonum.tex47
1 files changed, 47 insertions, 0 deletions
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{