← All templates

Lecture handout (tufte-handout)

A lecture handout on the tufte-handout class with side notes, a margin table and a margin figure.

Create an account to use this
Category
Teaching
Document class
tufte-handout (tufte-handout.cls) — ships with TeX Live
Workflow
Lecture notes — no revision rounds
Author
Bil Kleb, Bill Wood, Kevin Godby
Source
CTAN
Licence
tufte-handout.cls: Apache License, version 2.0. 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-teaching-tufte-latex

Source

main.tex — the file that is compiled · 2 KB
\documentclass{tufte-handout}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{tikz}

\title{Your paper}
\author[Author Name]{Author Name}
\date{Lecture 7}

\begin{document}
\maketitle

\begin{abstract}
\noindent These notes introduce the entropy of a discrete source, compute it for a few
simple examples, and show where it reaches its maximum.
\end{abstract}

\section{Measuring information}
\newthought{The amount of information} in a message depends only on how surprising it was,
an idea made precise by Shannon.\cite{shannon1948} A source that emits symbol $i$ with
probability $p_i$ has entropy\sidenote{Logarithms are taken to base 2, so entropy is measured
in bits.}
\begin{equation}
  H = -\sum_{i} p_i \log_2 p_i .
  \label{eq:entropy}
\end{equation}

\begin{margintable}
\centering
\begin{tabular}{@{}lc@{}}
\toprule
Source & $H$ (bits) \\
\midrule
Fair coin & 1.00 \\
Biased coin (0.9) & 0.47 \\
Fair die & 2.58 \\
\bottomrule
\end{tabular}
\caption{Entropy of three sources, from equation~\eqref{eq:entropy}.}
\label{tab:sources}
\end{margintable}

Table~\ref{tab:sources} in the margin gives the entropy of three familiar sources. A fair
die carries more information per throw than a coin, because it has more equally likely
outcomes.\marginnote{For $n$ equally likely outcomes, $H = \log_2 n$.}

\section{The binary source}
For two symbols with probabilities $p$ and $1-p$ the entropy is largest when both are
equally likely, as Figure~\ref{fig:binary} shows.

\begin{marginfigure}
\centering
\begin{tikzpicture}[xscale=3.6, yscale=2.4]
  \draw[->] (0,0) -- (1.1,0) node[right] {$p$};
  \draw[->] (0,0) -- (0,1.2) node[above] {$H$};
  \draw[thick, domain=0.001:0.999, samples=80]
    plot (\x, {-\x*ln(\x)/ln(2) - (1-\x)*ln(1-\x)/ln(2)});
  \node[below] at (0.5,0) {$\tfrac12$};
  \node[left] at (0,1) {$1$};
\end{tikzpicture}
\caption{Entropy of a binary source.}
\label{fig:binary}
\end{marginfigure}

\section{Exercises}
\begin{enumerate}
  \item Compute the entropy of a source with probabilities $\tfrac12, \tfrac14, \tfrac14$.
  \item Show that $H \leq \log_2 n$ for a source with $n$ symbols.
\end{enumerate}

\bibliography{references}
\bibliographystyle{plainnat}

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