From f2b17b301bc42fa0840bf079cda4b41ea8e41e8c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 12 Feb 2022 21:17:42 +0000 Subject: snotez (12feb22) git-svn-id: svn://tug.org/texlive/trunk@61992 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/snotez/README | 2 +- .../texmf-dist/doc/latex/snotez/snotez-manual.pdf | Bin 459024 -> 480373 bytes .../texmf-dist/doc/latex/snotez/snotez-manual.tex | 4 ++++ Master/texmf-dist/tex/latex/snotez/snotez.sty | 9 ++++++--- 4 files changed, 11 insertions(+), 4 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/snotez/README b/Master/texmf-dist/doc/latex/snotez/README index 8382efb0265..6c83440e3da 100644 --- a/Master/texmf-dist/doc/latex/snotez/README +++ b/Master/texmf-dist/doc/latex/snotez/README @@ -1,5 +1,5 @@ -------------------------------------------------------------------------- -the SNOTEZ package v0.6 2022/02/10 +the SNOTEZ package v0.7 2022/02/12 Sidenotes for LaTeX2e diff --git a/Master/texmf-dist/doc/latex/snotez/snotez-manual.pdf b/Master/texmf-dist/doc/latex/snotez/snotez-manual.pdf index 80470bfd002..88795984c62 100644 Binary files a/Master/texmf-dist/doc/latex/snotez/snotez-manual.pdf and b/Master/texmf-dist/doc/latex/snotez/snotez-manual.pdf differ diff --git a/Master/texmf-dist/doc/latex/snotez/snotez-manual.tex b/Master/texmf-dist/doc/latex/snotez/snotez-manual.tex index 1cc9061ab27..c0f874d9b42 100644 --- a/Master/texmf-dist/doc/latex/snotez/snotez-manual.tex +++ b/Master/texmf-dist/doc/latex/snotez/snotez-manual.tex @@ -241,6 +241,10 @@ For these cases \snotez\ provides\sinceversion{0.5} these environments: Places a table in the margin within a \cs*{marginpar}. \cs*{caption} can be used in the usual way. \end{environments} +\begin{sidefigure} + \includegraphics[width=\marginparwidth]{example-image} + \caption{An example for a figure in the margin.} +\end{sidefigure} In order to be able to place other floats in the margin, too, \snotez\ provides the following command: diff --git a/Master/texmf-dist/tex/latex/snotez/snotez.sty b/Master/texmf-dist/tex/latex/snotez/snotez.sty index f6e9b7a7465..aca80f677d1 100644 --- a/Master/texmf-dist/tex/latex/snotez/snotez.sty +++ b/Master/texmf-dist/tex/latex/snotez/snotez.sty @@ -22,8 +22,8 @@ % % The Current Maintainer of this work is Clemens Niederberger. % -------------------------------------------------------------------------- -\def\snotez@date{2022/02/10} -\def\snotez@version{v0.6} +\def\snotez@date{2022/02/12} +\def\snotez@version{v0.7} \def\snotez@description{sidenote support for LaTeX 2e (CN)} \NeedsTeXFormat{LaTeX2e} @@ -259,7 +259,9 @@ \newcommand*\snotez@sidefloat@format{\raggedright} \newenvironment{snotez@sidefloat}[2]{% - \def\@captype{#1}% + \ifdef\caption@settype + {\caption@settype{#1}} + {\def\@captype{#1}}% \begin{lrbox}{\snotez@sidefloat@box}% \minipage{\marginparwidth}% \snotez@sidefloat@format#2% @@ -335,3 +337,4 @@ 2020/12/14 v0.5a - fix issue #1 2022/02/10 v0.6 - fix issue #2 - add option `perchapter' +2022/02/12 v0.7 - make `snotez' and `caption' compatible -- cgit v1.2.3