summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-04 23:38:39 +0000
committerKarl Berry <karl@freefriends.org>2015-03-04 23:38:39 +0000
commit363972203ff0e9b7cdcc2686cefbe401e392899b (patch)
tree43f545a4e66c02c720dcb5c001c141f1407c5e05 /Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls
parent4ff310f0cf299e6ae165b582273ca48d72d45254 (diff)
sidenotes (4mar15)
git-svn-id: svn://tug.org/texlive/trunk@36434 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls')
-rw-r--r--Master/texmf-dist/tex/latex/sidenotes/caesar_book.cls29
1 files changed, 27 insertions, 2 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
+
+