• No results found

The Willow Tree Book Class 1.03

N/A
N/A
Protected

Academic year: 2021

Share "The Willow Tree Book Class 1.03"

Copied!
18
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Benjamin M

c

Kay

The Willow Tree Book Class 1.03

(2)

Released under the LATEX Public Project License 1.3c

(3)

iii

(4)
(5)

Preface

The Willow Tree Book class is a simplified derivative of thememoir book class.

I use it for my lecture notes. The document you are reading is in the Willow Tree Book class.

(6)

Contents

Preface v

1 Use 1

2 Definitions, Problems and Theorems 3 3 Citations 5

Hints 7 Bibliography 9 List of notation 11

vi

(7)

Chapter 1

Use

Here is a typical book using the Willow Tree Book class:

\documentclass{willowtreebook}

\Title{Odyssey}

\Author{Homer}

\BibliographyFile{odyssey}

% The name of the .bib file, without file extension.

\begin{document}

\chapter{Preface}

This is the preface to my book.

\afterpreface

\chapter{We meet Odysseus}

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.

\par\bigskip\noindent THE END

% End the document without loading the bibliography

% or the index, or the list of notation.

\end{document}

Compile withlatex or pdflatex.

(8)
(9)

Chapter 2

Definitions, Problems and Theorems

Definitions

We can define a term like hamster, or say that the term hamster appears again later.

\chapter{Definitions, Problems and Theorems}

\section{Definitions}

We can define a term like \emph{hamster}\define{hamster},

or say that the term hamster\SubIndex{hamster} appears again later.

Compile, for a book calledfilename.tex, with makeindex filename

We add notation like when we use a variable called ω, we put it in the list of notation.

We add notation like when we use a variable called \(\omega\), we put it in the list of notation.%

\Notation{omega}{\omega}{A variable called $\omega$}

If you use notation, compile with

makeindex -s notation.gst -o not.gls not.glo

Problems

2.1 What is the point of your life?

In problem2.1, we can clearly see ...

% We add problems by:

\begin{problem}{label.for.the.first.problem}

What is the point of your life?

\end{problem}

% and answers by:

\begin{answer}{label.for.the.first.problem}

Your life is pointless.

\end{answer}

In problem~\ref{problem:label.for.the.first.problem}, we can clearly see ...

(10)
(11)

Chapter 3

Citations

Our bibliography file looks like

@book {Homer:Iliad, AUTHOR = {Homer},

TITLE = {The {I}liad}, EDITION = {Third},

NOTE = {An epic poem in dactylic hexameter, translated from the Greek by A. Guy}, PUBLISHER = {McHaw-Grill Book Co., New Cork},

YEAR = {1978}, PAGES = {xi+331},

ISBN = {0-07-000657-1}, }

We can cite works from the bibliography, like Homer [1], p. 12.

We can cite works from the bibliography, like Homer~\cite{Homer:Iliad}, p. 12.

Compile withbibtex.

Theorems

You have the usual theorem environments, likeamsthm.

Theorem 3.1 (Pythagoras). In any triangle with sides of lengths a, b, c, a2+ b2= c2 just when the angle opposite the side of length c is a right angle.

\begin{theorem}[Pythagoras]

In any triangle with sides of lengths \(a,b,c\),

\(a^2+b^2=c^2\) just when the angle opposite the side of length \(c\) is a right angle.

\end{theorem}

(12)

6 Citations

Examples

I often want to present an example, and make clear where it starts and stops.

The integral

Z

ex2x dx

is evaluated by substituting u = x2, so Z

ex2x dx = Z

eudu 2 .

\begin{example}

The integral

\[\int e^{x^2}x\,dx

\]is evaluated by substituting \(u=x^2\), so

\[\int e^{x^2}x\,dx=\int e^u \frac{du}{2}.

\]\end{example}

Preambles

We can put some LATEX code before the hints:

\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:

\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}}

(13)

Hints

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.

— Lewis Carroll

2.1. Your life is pointless.

(14)
(15)

Bibliography

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.

— Omar

[1] Homer, The Iliad, third ed., McHaw-Grill Book Co., New Cork, 1978, An epic poem in dactylic hexameter, translated from the Greek by A. Guy. 5

(16)
(17)

List of notation

ω A variable called ω, 3

(18)

Referenties

GERELATEERDE DOCUMENTEN

In the context of the model from chapter 3, they reiterate the main postulates that went into their model: i if the energies in connected subsystems are equal, energy exchange

A particular link between both passages is the mention of the '(wooden) platform', ßriia.22 Beside the reading of the Law in the 7th month this element, together with Esra being

Josephus Ptolemy Physcon Egypt (VOCO) 2 Maccabees Heliodorus Jerusalem Temple pollution Collective prayer Alexandria Elephants Angels Intercessory prayer Repentance Liberation

Section IV of the Introduction deals with the features shared by Epic Sanskrit and Middle and Late Vedic (i.e. the Mantra language, the language of the Saqthita prose

word (which is probably dictated by general requirements of the series). Thus, those wishing to consult variant readings have to address Caland’s editio princeps. As usual in

All that while the fight with Baloo went on, and the monkeys yelled in the tank round Bagheera, and Mang the Bat, flying to and fro, carried the news of the great battle over

The sons of the Achaeans shared it duly among themselves, and chose lovely Chryseis as the meed of Agamemnon; but Chryses, priest of Apollo, came to the ships of the Achae- ans to

Talk to your friends about different ways in which we can save water.. Talk to your friends about different ways