summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/autonum/test-freeze.tex
blob: 0e0955b06a75ec981755c6e4a74ec3f3b65b110a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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}