summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hepthesis/example/chap3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hepthesis/example/chap3.tex')
-rw-r--r--macros/latex/contrib/hepthesis/example/chap3.tex38
1 files changed, 38 insertions, 0 deletions
diff --git a/macros/latex/contrib/hepthesis/example/chap3.tex b/macros/latex/contrib/hepthesis/example/chap3.tex
new file mode 100644
index 0000000000..85b5a18a8b
--- /dev/null
+++ b/macros/latex/contrib/hepthesis/example/chap3.tex
@@ -0,0 +1,38 @@
+\chapter{Continued captions}
+\label{chap:ContCaptions}
+
+Here are some funky floats using ``continued captions'', i.e. for a semantically
+collected group of float contents which are too numerous to fit into a single
+float, such as the pretty circles in the following figure:
+
+\newcommand{\circleimg}[1]{%
+\begin{tikzpicture}
+ \draw[color=black,fill=#1,thick] (1,0) circle (1.5cm);
+\end{tikzpicture}%
+}
+
+\begin{figure}[hb]
+ \subfloat[][Example 1a]{\label{fig:cc1a}\circleimg{red!80}}\quad
+ \subfloat[][Example 1b]{\label{fig:cc1b}\circleimg{green!70!yellow}}\quad
+ \subfloat[][Example 1c]{\label{fig:cc1c}\circleimg{blue!80}}\quad
+ \subfloat[][Example 1d]{\label{fig:cc1d}\circleimg{orange!80!yellow}}
+ \caption{Demonstration of \texttt{subfig} continued captions.}
+ \label{fig:cc1}
+\end{figure}
+
+\begin{figure}[p]
+ \ContinuedFloat
+ \subfloat[][Example 1e]{\label{fig:cc1e}\circleimg{violet}}\quad
+ \subfloat[][Example 1f]{\label{fig:cc1f}\circleimg{cyan}}\quad
+ \subfloat[][Example 1g]{\label{fig:cc1g}\circleimg{magenta}}\quad
+ \subfloat[][Example 1h]{\label{fig:cc1h}\circleimg{yellow}}
+ \caption[]{Demonstration of \texttt{subfig} continued captions (continued).}
+\end{figure}
+
+\noindent
+This mechanism means that the same float label is used for both pages of
+floats. Note that we can refer to \FigureRef{fig:cc1} in general, or to
+\FigureRef{fig:cc1g} on \PageRef{fig:cc1g} in particular!
+
+\noindent
+Just for the hell of it, let's also refer to \SectionRef{sec:neutralmixing}.