summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mcaption/example.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/mcaption/example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/mcaption/example.tex50
1 files changed, 38 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/mcaption/example.tex b/Master/texmf-dist/doc/latex/mcaption/example.tex
index 14b56874d4b..d7af58e0960 100644
--- a/Master/texmf-dist/doc/latex/mcaption/example.tex
+++ b/Master/texmf-dist/doc/latex/mcaption/example.tex
@@ -25,53 +25,79 @@
\usepackage{wrapfig}
\usepackage[top]{mcaption}
\usepackage[
- font={footnotesize,it},
- labelfont=bf,
- justification=raggedright]
+font={footnotesize,it},
+labelfont=bf,
+justification=raggedright]
{caption}[2005/06/28]
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\setlength{\margincapsep}{3\columnsep}
+
+\author{Stephan Hennig}
+\title{mcaption test file}
+\maketitle
+\listoffigures
+\listoftables
+
\chapter{Demonstration of the mcaption package}
-\section{This is one column mode}
+\section{This is one-column mode}
\blindtext[1]
\begin{wrapfigure}{o}{5cm}
- \begin{margincap}{A wrapfigure caption in the outer margin.}
+ \begin{margincap}
\rule{5cm}{2cm}
+ \caption{A wrapfigure caption in the outer margin.}
+ \label{fig:wrapOneCol}
\end{margincap}
\end{wrapfigure}
\blindtext[1]
\begin{table}
- \begin{margincap}{A table caption in the outer margin.}
+ \begin{margincap}
\centering
-%%% Note the alignment specifier!
- \begin{tabular}[\margincapalign]{@{}lr@{}}
+ \begin{tabular}{@{}lr@{}}
foo & 7\\
bar & 21 \\
baz & 23 \\
\end{tabular}
+ \caption{A table caption in the outer margin.}
+ \label{tab:shorttab}
\end{margincap}
\end{table}
\twocolumn
-\section{This is two column mode}
+\section{This is two-column mode}
\blindtext[1]
\begin{wrapfigure}{o}{2cm}
- \begin{margincap}{Another wrapfigure caption in the outer margin.
- Note, we are in the outer column. And we're hanging!}
+ \begin{margincap}
\rule{2cm}{1cm}
+ \caption[A hanging wrapfigure caption.]{Another wrapfigure caption
+ in the outer margin. Note, we are in the outer column. And we're
+ hanging!}
+ \label{fig:wrapTwoCol}
\end{margincap}
\end{wrapfigure}
\blindtext[5]
\begin{figure*}
- \begin{margincap}{A figure caption in the outer margin.}
+ \begin{margincap}
\centering
\rule{10cm}{2cm}
+ \caption{A figure caption in the outer margin.}
+ \label{fig:figure*}
\end{margincap}
\end{figure*}
+
+Let's reference all figures and tables:
+
+\newcommand*{\pref}[1]{\ref{#1} & \pageref{#1}}
+\begin{tabular}{ll}
+ float & page\\\hline
+ figure~\pref{fig:wrapOneCol}\\
+ table~\pref{tab:shorttab}\\
+ figure~\pref{fig:wrapTwoCol}\\
+ figure~\pref{fig:figure*}\\
+\end{tabular}
\end{document}
\endinput
%%