From d027611c70ba34bcd9423386d0541c67bf2b0a0c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 23 May 2012 23:31:58 +0000 Subject: sidenotes (23may12) git-svn-id: svn://tug.org/texlive/trunk@26610 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/latex/sidenotes') diff --git a/Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty b/Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty index 477c72a6d06..0337e8ee4d8 100644 --- a/Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty +++ b/Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty @@ -13,7 +13,7 @@ %% about the files the work consists of. %% \ProvidesPackage{sidenotes}[% - 2011/11/10 v0.80 rich text in the margin for LaTeX] + 2011/11/29 v0.81 rich text in the margin for LaTeX] \RequirePackage{marginnote} % puts the stuff in the margin and provides an offset option instead of a float \RequirePackage{caption} % handles the figure caption (in the margin) \RequirePackage{xifthen} % provide an if command @@ -33,6 +33,7 @@ \sidenotetext{#2}}% {\sidenotemark[#1]% \sidenotetext[#1]{#2}}% +\@ifnextchar\sidenote{\kern-0.07em\textsuperscript{,}}{\@ifnextchar\sidecite{\kern-0.07em\textsuperscript{,}}{ }}% } \newcommand{\sidenotemark}[1][]{% \nobreak\hspace{0.1pt}\nobreak% @@ -43,6 +44,7 @@ \setcounter{sidenote}{#1}% \textsuperscript{\thesidenote}% print out the argument otherwise \setcounter{sidenote}{\value{@sidenotes@buffer}}}% +\@ifnextchar\sidenote{\textsuperscript{,}}{}% \ignorespaces% }% \newcommand{\sidenotetext}[2][]{% -- cgit v1.2.3