summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/willowtreebook/willowtreebook.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/willowtreebook/willowtreebook.cls')
-rw-r--r--macros/latex/contrib/willowtreebook/willowtreebook.cls8
1 files changed, 5 insertions, 3 deletions
diff --git a/macros/latex/contrib/willowtreebook/willowtreebook.cls b/macros/latex/contrib/willowtreebook/willowtreebook.cls
index 28ea7bbc99..1a2eb4d49c 100644
--- a/macros/latex/contrib/willowtreebook/willowtreebook.cls
+++ b/macros/latex/contrib/willowtreebook/willowtreebook.cls
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{willowtreebook}[2020/04/24 Willow Tree Book LaTeX class v1.01]
+\ProvidesClass{willowtreebook}[2021/09/22 Willow Tree Book LaTeX class v1.02]
\DeclareOption{ContainsChinese}{\def\ChineseTextInThisDocument{}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
\ProcessOptions\relax
@@ -9,7 +9,7 @@
\def\mckaybook@subtitle{}
\def\mckaybook@author{}
\def\mckaybook@bibliography{}
-\def\mckaybook@colophon{This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.}
+\def\mckaybook@colophon{This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License.}
\NewDocumentCommand\Title{m}{\global\def\mckaybook@title{#1}}
\NewDocumentCommand\Subtitle{m}{\global\def\mckaybook@subtitle{#1}}
\NewDocumentCommand\Author{m}{\global\def\mckaybook@author{#1}}
@@ -511,6 +511,7 @@ ref=\theenumi.\emph{\alph*}}
\pagenumbering{arabic}
}%
\NewDocumentCommand\hintsPreamble{}{}
+\NewDocumentCommand\bibliographyPreamble{}{}
\AtEndDocument%
{%%
\backmatter
@@ -525,7 +526,8 @@ ref=\theenumi.\emph{\alph*}}
\ifx\mckaybook@bibliography\@empty
\else
% Bibliography
-\bibliographystyle{amsplain}
+\bibliographystyle{amsplain}%
+\renewcommand{\prebibhook}{\bibliographyPreamble{}}
\bibliography{\mckaybook@bibliography}
\flushbottom
\fi