summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-05 19:40:34 +0000
committerKarl Berry <karl@freefriends.org>2023-10-05 19:40:34 +0000
commit9872f149048296ab207386f967697abb5b30450c (patch)
treeeaaab8efa3113ee6ff79f38490b1462ec1142d38 /Master/texmf-dist/tex
parent9b3db1287c78496c24b88eb363d495a88bfa02c3 (diff)
sidenotesplus (5oct23)
git-svn-id: svn://tug.org/texlive/trunk@68456 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/sidenotesplus/sidenotesplus.sty32
1 files changed, 31 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/sidenotesplus/sidenotesplus.sty b/Master/texmf-dist/tex/latex/sidenotesplus/sidenotesplus.sty
index 20627123db2..ba8cd69342a 100644
--- a/Master/texmf-dist/tex/latex/sidenotesplus/sidenotesplus.sty
+++ b/Master/texmf-dist/tex/latex/sidenotesplus/sidenotesplus.sty
@@ -25,7 +25,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\ProvidesPackage{sidenotesplus}
- [2022/07/09 1.02 rich text marginal notes, tables and figures ]
+ [2023/10/05 1.03 rich text marginal notes, tables and figures ]
\RequirePackage{marginnote} % provides an offset option for the marginals instead of a float
\RequirePackage{caption} % handles the captions (in the margin)
\RequirePackage{xparse} % new LaTeX3 syntax to define macros and environments
@@ -673,6 +673,36 @@
{\kern-2.3pt\upshape\fullcite[\snp@before][\snp@after]{#8}}
}
}
+\NewDocumentCommand \sidecitebefore {s d|| d<> d() d!! o o m }
+{ \IfNoValueOrEmptyTF{#6}
+ {\RenewDocumentCommand \snp@before {} {}}
+ {\RenewDocumentCommand \snp@before {} {#6}}
+ \IfNoValueOrEmptyTF{#7}
+ {\RenewDocumentCommand \snp@after {} {}}
+ {\RenewDocumentCommand \snp@after {} {#7}}
+ \sidenotetextbefore|#2|<#3>(#4)!#5!{\kern-2.3pt\upshape\fullcite[\snp@before][\snp@after]{#8}}
+}
+\NewDocumentCommand \sideciteafter {s d|| d<> d() d!! o o m }
+{ \IfNoValueOrEmptyTF{#6}
+ {\RenewDocumentCommand \snp@before {} {}}
+ {\RenewDocumentCommand \snp@before {} {#6}}
+ \IfNoValueOrEmptyTF{#7}
+ {\RenewDocumentCommand \snp@after {} {}}
+ {\RenewDocumentCommand \snp@after {} {#7}}
+ \sidenotetext|#2|<#3>(#4)!#5!{\kern-2.3pt\upshape\fullcite[\snp@before][\snp@after]{#8}}
+}
+\NewDocumentCommand \sidecitemark {s d() d!! }
+{
+ \IfBooleanTF{#1}
+ { % starred
+ \relax}
+ {% unstarred
+ \IfNoValueOrEmptyTF{#3}
+ {\snp@sidenotemark (#2)}
+ {\snp@sidenotemark !#3!( #2)}
+ }
+ \xspace
+}
\ExplSyntaxOff
%%
\newlength\snp@marginparsepodd