diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/sidenotes')
-rw-r--r-- | Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty | 2 |
2 files changed, 28 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls b/Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls index b1812381a5e..8b892f6c691 100644 --- a/Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls +++ b/Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{caesar_book.cls}[2014/02/14 v0.96 Caesar book] +\ProvidesFile{caesar_book.cls}[2015/03/04 v0.98 Caesar book] % Load the amsmath and the mhchem package before loading microtype \RequirePackage{amsmath}% better math handling \RequirePackage[version=3]{mhchem}% chemical formulas @@ -135,4 +135,29 @@ \addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex}% \noindent\textsc{#1}% }% -\newcommandtwoopt{\sidecite}[3][][]{\sidenote{\fullcite[#1][#2]{#3}}} +\ExplSyntaxOn +\NewDocumentCommand \sidecite { o o m } +{ + \IfNoValueOrEmptyTF{#1} + { + \IfNoValueOrEmptyTF{#2} + { + \sidenote{\fullcite{#3}} + } + { + \sidenote{\fullcite[#2]{#3}} + } + } + { + \IfNoValueOrEmptyTF{#2} + { + \sidenote{\fullcite[#1]{#3}} + } + { + \sidenote{\fullcite[#1][#2]{#3}} + } + } +} +\ExplSyntaxOff + + diff --git a/Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty b/Master/texmf-dist/tex/latex/sidenotes/sidenotes.sty index 36d41bc7b31..b9040b117ee 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. %% \RequirePackage{l3keys2e}% -\ProvidesExplPackage{sidenotes}{2014/06/05}{0.97e}{rich text in the margin for LaTeX} +\ProvidesExplPackage{sidenotes}{2015/03/04}{0.98}{rich text in the margin for LaTeX} \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 |