From 9e0cbcf2b83f0386e263ae87aa4d5315f2f349b7 Mon Sep 17 00:00:00 2001 From: Rholais Lii Date: Sun, 19 Apr 2020 20:47:11 +0800 Subject: [PATCH] Show short caption as an option the short caption is as an option instead of an argument --- sample-book.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample-book.tex b/sample-book.tex index 6f168f3..d47c11b 100644 --- a/sample-book.tex +++ b/sample-book.tex @@ -582,7 +582,7 @@ \section{Figures and Tables}\label{sec:figures-and-tables} \begin{marginfigure}% \includegraphics[width=\linewidth]{helix} - \caption{This is a margin figure. The helix is defined by + \caption{This is a margin figure. The helix is defined by $x = \cos(2\pi z)$, $y = \sin(2\pi z)$, and $z = [0, 2.7]$. The figure was drawn using Asymptote (\url{http://asymptote.sf.net/}).} \label{fig:marginfig} @@ -632,9 +632,9 @@ \section{Figures and Tables}\label{sec:figures-and-tables} You may specify the caption in any one of the following forms: \begin{docspec} \doccmd{caption}\{\docarg{long caption}\}\\ - \doccmd{caption}[\docarg{short caption}]\{\docarg{long caption}\}\\ + \doccmd{caption}[\docopt{short caption}]\{\docarg{long caption}\}\\ \doccmd{caption}[][\docopt{offset}]\{\docarg{long caption}\}\\ - \doccmd{caption}[\docarg{short caption}][\docopt{offset}]% + \doccmd{caption}[\docopt{short caption}][\docopt{offset}]% \{\docarg{long caption}\} \end{docspec} A positive \docopt{offset} will push the caption down the page. The short