texlive[60583] Master/texmf-dist: willowtreebook (22sep21)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 22 22:36:47 CEST 2021


Revision: 60583
          http://tug.org/svn/texlive?view=revision&revision=60583
Author:   karl
Date:     2021-09-22 22:36:47 +0200 (Wed, 22 Sep 2021)
Log Message:
-----------
willowtreebook (22sep21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/willowtreebook/README
    trunk/Master/texmf-dist/doc/latex/willowtreebook/willowtreebook.pdf
    trunk/Master/texmf-dist/doc/latex/willowtreebook/willowtreebook.tex
    trunk/Master/texmf-dist/tex/latex/willowtreebook/willowtreebook.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/willowtreebook/notation.gst

Modified: trunk/Master/texmf-dist/doc/latex/willowtreebook/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/willowtreebook/README	2021-09-22 20:36:26 UTC (rev 60582)
+++ trunk/Master/texmf-dist/doc/latex/willowtreebook/README	2021-09-22 20:36:47 UTC (rev 60583)
@@ -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 @@
 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.

Added: trunk/Master/texmf-dist/doc/latex/willowtreebook/notation.gst
===================================================================
--- trunk/Master/texmf-dist/doc/latex/willowtreebook/notation.gst	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/willowtreebook/notation.gst	2021-09-22 20:36:47 UTC (rev 60583)
@@ -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"


Property changes on: trunk/Master/texmf-dist/doc/latex/willowtreebook/notation.gst
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/willowtreebook/willowtreebook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/willowtreebook/willowtreebook.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/willowtreebook/willowtreebook.tex	2021-09-22 20:36:26 UTC (rev 60582)
+++ trunk/Master/texmf-dist/doc/latex/willowtreebook/willowtreebook.tex	2021-09-22 20:36:47 UTC (rev 60583)
@@ -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 @@
 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 @@
 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 @@
 \]
 \end{example}
 \begin{Verbatim}[frame=leftline]
+\begin{example}
 The integral 
 \[
 \int e^{x^2}x\,dx
@@ -120,5 +124,17 @@
 \[
 \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}

Modified: trunk/Master/texmf-dist/tex/latex/willowtreebook/willowtreebook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/willowtreebook/willowtreebook.cls	2021-09-22 20:36:26 UTC (rev 60582)
+++ trunk/Master/texmf-dist/tex/latex/willowtreebook/willowtreebook.cls	2021-09-22 20:36:47 UTC (rev 60583)
@@ -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 at subtitle{}
 \def\mckaybook at author{}
 \def\mckaybook at bibliography{}
-\def\mckaybook at colophon{This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.}
+\def\mckaybook at colophon{This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License.}
 \NewDocumentCommand\Title{m}{\global\def\mckaybook at title{#1}}
 \NewDocumentCommand\Subtitle{m}{\global\def\mckaybook at subtitle{#1}}
 \NewDocumentCommand\Author{m}{\global\def\mckaybook at author{#1}}
@@ -511,6 +511,7 @@
 \pagenumbering{arabic}
 }%
 \NewDocumentCommand\hintsPreamble{}{}
+\NewDocumentCommand\bibliographyPreamble{}{}
 \AtEndDocument%
 {%%
 \backmatter
@@ -525,7 +526,8 @@
 \ifx\mckaybook at bibliography\@empty
 \else
 % Bibliography
-\bibliographystyle{amsplain}
+\bibliographystyle{amsplain}%
+\renewcommand{\prebibhook}{\bibliographyPreamble{}}
 \bibliography{\mckaybook at bibliography}
 \flushbottom
 \fi



More information about the tex-live-commits mailing list.