summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/willowtreebook
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/willowtreebook')
-rw-r--r--macros/latex/contrib/willowtreebook/README5
-rw-r--r--macros/latex/contrib/willowtreebook/notation.gst12
-rw-r--r--macros/latex/contrib/willowtreebook/willowtreebook.cls8
-rw-r--r--macros/latex/contrib/willowtreebook/willowtreebook.pdfbin13983793 -> 13991774 bytes
-rw-r--r--macros/latex/contrib/willowtreebook/willowtreebook.tex20
5 files changed, 38 insertions, 7 deletions
diff --git a/macros/latex/contrib/willowtreebook/README b/macros/latex/contrib/willowtreebook/README
index b1991b8328..df5fb11cab 100644
--- a/macros/latex/contrib/willowtreebook/README
+++ b/macros/latex/contrib/willowtreebook/README
@@ -1,6 +1,6 @@
Willow Tree Book Class
-v1.01
-24 April 2020
+v1.02
+22 September 2021
Authors:
Ben McKay
@@ -18,3 +18,4 @@ See http://www.latex-project.org/lppl.txt
The willowtreebook class is a simple book class, which I use for lecture notes.
It actually just selects options for the more sophisticated memoir class.
+Changes: added hint and bibliography preambles, to load before the hints or bibliography.
diff --git a/macros/latex/contrib/willowtreebook/notation.gst b/macros/latex/contrib/willowtreebook/notation.gst
new file mode 100644
index 0000000000..2ee81b75a6
--- /dev/null
+++ b/macros/latex/contrib/willowtreebook/notation.gst
@@ -0,0 +1,12 @@
+%%% analysis.gst basic makindex glossary style file
+%%% Output style parameters
+preamble "\\begin{theglossary}"
+postamble "\n\\end{theglossary}\n"
+item_0 "\n\\glossitem"
+delim_0 "{\\memglonum{"
+encap_suffix "}}}"
+headings_flag 1
+heading_prefix "\\doglobookmark{"
+heading_suffix "}"
+%%% Input style parameters
+keyword "\\glossaryentry"
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
diff --git a/macros/latex/contrib/willowtreebook/willowtreebook.pdf b/macros/latex/contrib/willowtreebook/willowtreebook.pdf
index e799a3dc18..0c3d8b6578 100644
--- a/macros/latex/contrib/willowtreebook/willowtreebook.pdf
+++ b/macros/latex/contrib/willowtreebook/willowtreebook.pdf
Binary files differ
diff --git a/macros/latex/contrib/willowtreebook/willowtreebook.tex b/macros/latex/contrib/willowtreebook/willowtreebook.tex
index 96cb7d3190..2418ae455e 100644
--- a/macros/latex/contrib/willowtreebook/willowtreebook.tex
+++ b/macros/latex/contrib/willowtreebook/willowtreebook.tex
@@ -1,5 +1,5 @@
\documentclass{willowtreebook}
-\Title{The Willow Tree Book Class 1.01}
+\Title{The Willow Tree Book Class 1.02}
\Author{Benjamin \scotsMc{}Kay}
\Colophon{Released under the \LaTeX{} Public Project License 1.3c}
\BibliographyFile{willowtreebook}
@@ -25,7 +25,8 @@ Here is a typical book using the Willow Tree Book class:
This is the preface to my book.
\afterpreface
\chapter{We meet Odysseus}
-Tell me, O muse, of that ingenious hero \dots
+Tell me, O muse, of that ingenious hero
+ % The rest of the text goes here.
Thus spoke Minerva, and Ulysses obeyed her gladly. Then Minerva assumed
the form and voice of Mentor, and presently made a covenant of peace
between the two contending parties.
@@ -100,6 +101,8 @@ In any triangle with sides of lengths \(a,b,c\),
side of length \(c\) is a right angle.
\end{theorem}
\end{Verbatim}
+\newpage
+\section{Examples}
I often want to present an example, and make clear where it starts and stops.
\begin{example}
The integral
@@ -112,6 +115,7 @@ is evaluated by substituting \(u=x^2\), so
\]
\end{example}
\begin{Verbatim}[frame=leftline]
+\begin{example}
The integral
\[
\int e^{x^2}x\,dx
@@ -120,5 +124,17 @@ is evaluated by substituting \(u=x^2\), so
\[
\int e^{x^2}x\,dx=\int e^u \frac{du}{2}.
\]
+\end{example}
+\end{Verbatim}
+\section{Preambles}
+We can put some \LaTeX{} code before the hints:
+\begin{Verbatim}[frame=leftline]
+\RenewDocumentCommand\hintsPreamble{}{\par\noindent{}\textit{When you are describing, \\ A shape, or sound, or tint; \\ Don't state the matter plainly, \\ But put it in a hint; \\\ And learn to look at all things, \\ With a sort of mental squint.}\par\noindent{}---\ {Lewis Carroll}}
+\end{Verbatim}
+\RenewDocumentCommand\hintsPreamble{}{\par\noindent{}\textit{When you are describing, \\ A shape, or sound, or tint; \\ Don't state the matter plainly, \\ But put it in a hint; \\\ And learn to look at all things, \\ With a sort of mental squint.}\par\noindent{}---\ {Lewis Carroll}}
+or before the bibliography:
+\begin{Verbatim}[frame=leftline]
+\RenewDocumentCommand\bibliographyPreamble{}{\par\noindent\textit{If those books are in agreement with the Quran, we have no need of them; and if these are opposed to the Quran, destroy them.}\par\noindent{}---\ {Omar}}
\end{Verbatim}
+\RenewDocumentCommand\bibliographyPreamble{}{\par\noindent\textit{If those books are in agreement with the Quran, we have no need of them; and if these are opposed to the Quran, destroy them.}\par\noindent{}---\ {Omar}}
\end{document}