← All templates

Course text with problems (willowtreebook)

Lecture notes on willowtreebook, a simplified memoir-based book class with problems whose hints are collected automatically at the end.

Create an account to use this
Category
Book
Document class
willowtreebook (willowtreebook.cls) — ships with TeX Live
Workflow
Book — submissions and revision rounds
Author
Benjamin McKay
Source
CTAN
Licence
willowtreebook.cls: The LaTeX Project Public License 1.3c. Sample text: Manulyx, CC0 1.0 (free to use, no conditions).

What you get

  • main.tex — the file that is compiled · 2 KB
  • references.bib · 342 B

These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.

Link to this template. Send it to a student or co-author: it starts a new paper in this template, through sign-up if they need an account.

https://manulyx.com/start/ctan-book-willowtreebook

Source

main.tex — the file that is compiled · 2 KB
% willowtreebook writes the title page itself at \begin{document}, and at \end{document}
% it adds the hints to the problems and the bibliography named by \BibliographyFile.
\documentclass{willowtreebook}

\usepackage{booktabs}

\Title{Your paper}
\Author{Author Name}
\Colophon{Course notes for Course Name, Department of Example Studies, University Name.}
\BibliographyFile{references}

\begin{document}

\chapter{Preface}
These notes accompany a one-semester course. Each chapter ends with problems; hints are
at the back of the notes.

\afterpreface

\chapter{Measuring information}

The entropy of a source with symbol probabilities $p_i$ is \cite{shannon1948}
\begin{equation}
  H = -\sum_i p_i \log_2 p_i .
  \label{eq:entropy}
\end{equation}
Equation~\eqref{eq:entropy} is the definition every later chapter refers to.

\begin{theorem}
Among sources with $n$ symbols, the uniform source has the largest entropy, $\log_2 n$.
\end{theorem}

\begin{figure}
  \rule{0.5\textwidth}{30mm}
  \caption{A placeholder drawn with a rule.}
\end{figure}

\begin{table}[htbp]
  \centering
  \caption{Entropy of three sources.}
  \begin{tabular}{lr}
    \toprule
    Source & $H$ (bits) \\
    \midrule
    Coin   & 1.00 \\
    Die    & 2.58 \\
    Letter & 4.70 \\
    \bottomrule
  \end{tabular}
\end{table}

\section{Problems}

\begin{problem}{fair.die}
Compute the entropy of a fair eight-sided die.
\end{problem}
\begin{answer}{fair.die}
Every outcome has probability one eighth, so the entropy is three bits.
\end{answer}

\end{document}
references.bib · 342 B

Loading…

The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗