← All templates

Course notes (schooldocs)

Lecture notes on the article class with a schooldocs page style, title block, subject, institution and date in the headers.

Create an account to use this
Category
Teaching
Document class
article (article.cls) — ships with TeX Live
Workflow
Lecture notes — no revision rounds
Author
Antoine Missier
Source
CTAN
Licence
schooldocs.sty: The LaTeX Project Public License 1.3. 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-schooldocs

2 venues use this class

Manulyx keeps one template per document class and relates every venue to it, rather than one near-identical card per journal. Searching the gallery for any of these names finds this template.

Journal of Machine Learning Research, Transactions on Machine Learning Research
  • Journal of Machine Learning Research
  • Transactions on Machine Learning Research

Source

main.tex — the file that is compiled · 2 KB
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{schooldocs}

% Page styles: classic, elegant, modern, soft, exam, collection
\pagestyle{modern}
\title{Your paper}
\subject{Course Code -- Course Name}
\author{Author Name}
\institute{Department of Mathematics}
\date{Lecture 4}

\begin{document}
\maketitle

\section{Motivation}
Information can be measured. The amount of information carried by a message depends only
on how probable it was, an idea formalised by Shannon~\cite{shannon1948}. These notes
introduce the entropy of a discrete source.

\section{Entropy of a source}
A source emits symbol $i$ with probability $p_i$. Its entropy, in bits, is
\begin{equation}
  H = -\sum_{i} p_i \log_2 p_i .
  \label{eq:entropy}
\end{equation}
Table~\ref{tab:sources} lists the entropy of three simple sources computed
from~\eqref{eq:entropy}.

\begin{table}[h]
\centering
\caption{Entropy of three sources.}
\label{tab:sources}
\begin{tabular}{@{}lcc@{}}
\toprule
Source & Probabilities & $H$ (bits) \\
\midrule
Fair coin & $\tfrac12, \tfrac12$ & 1.00 \\
Biased coin & $0.9, 0.1$ & 0.47 \\
Fair die & $\tfrac16, \ldots, \tfrac16$ & 2.58 \\
\bottomrule
\end{tabular}
\end{table}

\seprule

\section{The binary case}
For a binary source with probabilities $p$ and $1-p$, the entropy is largest when $p = 1/2$,
as Figure~\ref{fig:binary} shows.

\begin{figure}[h]
\centering
\begin{tikzpicture}[xscale=4, yscale=2.2]
  \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[below] at (1,0) {$1$};
  \node[left] at (0,1) {$1$};
\end{tikzpicture}
\caption{Entropy of a binary source.}
\label{fig:binary}
\end{figure}

\section*{Exercise}
Compute the entropy of a source with probabilities $\tfrac12, \tfrac14, \tfrac14$.

\bibliographystyle{plain}
\bibliography{references}

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