The Best Latex Templates for Physics Note Taking

A copyable LaTeX template for physics lecture notes, where to find good physics templates, a worked derivation, and methods for taking notes in LaTeX.

By Scholarly12 min read

The best LaTeX template for physics notes is a short one you understand: the report or article class, amsmath and mathtools for equations, siunitx for units, amsthm boxes for definitions and results, TikZ for diagrams, and a handful of your own macros for vectors and derivatives. Gallery templates from Overleaf and LaTeXTemplates.com are good starting points for layout, but most of them are built for papers or books, so you end up stripping them down to the same core anyway. This guide gives you that core as a complete template that compiles with pdflatex, a worked derivation written in it, where to find other templates, and methods for taking physics notes in LaTeX without falling behind in lectures.

The Best Latex Templates for Physics Note Taking editorial illustration

If you want general advice on physics notes (what to write down, how to record problem-solving steps, how to review), see how to write notes for physics. This post is only about the LaTeX side.

What a physics notes template needs

Every package below solves a specific problem you will hit in the first few weeks of a physics course.

Need Package or feature What it gives you
Multi-line derivations amsmath (align, \eqref) Aligned steps, numbered equations, references like "(1.3)"
Fixes and extras for amsmath mathtools \DeclarePairedDelimiter for scaling absolute values and norms, \coloneqq
Extra symbols amssymb \mathbb{R}, \lesssim, and similar
Units siunitx \qty{9.81}{\metre\per\second\squared} prints correctly spaced, upright units
Definitions and results amsthm Numbered "Definition 1.2" and "Result 1.3" blocks you can reference
Vectors and derivatives Your own \newcommand macros \vec{F}, \dv{x}{t}, \pdv{f}{x} typed in a few keystrokes
Diagrams tikz, plus circuitikz or tikz-feynman when needed Free-body diagrams, springs, circuits, Feynman diagrams drawn in code
Navigation hyperref Clickable table of contents and equation references in the PDF

A note on the physics package

The physics package gives you \dv, \pdv, \qty, \abs, bra-ket notation and more in one line, and many students use it. It has two practical problems. It redefines \div (normally the division sign) as divergence, and its \qty command clashes with the \qty command in siunitx version 3, so you cannot use both without care. It has also not been updated in years; physics2 is a newer modular rewrite. The template below avoids the package and defines the few macros you actually need, which also keeps your notes portable to any editor or journal class. If you prefer physics, load it, delete the derivative macros from the template, and write units with \SI{...}{...} instead of \qty.

A complete physics lecture notes template

Save this as main.tex. It uses report, so each lecture is a chapter and equations are numbered per lecture (1.1, 1.2, then 2.1). If you want one short file per topic instead, switch to article, change every [chapter] to [section], and change \chapter{#1} to \section{#1} in the \lecture command (article has no chapters).

% main.tex: physics lecture notes. Compile with pdflatex (or latexmk -pdf main).
\documentclass[11pt,a4paper]{report}

% ---------- Page, fonts, text ----------
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=2.5cm]{geometry}
\usepackage{microtype}

% ---------- Math ----------
\usepackage{amsmath,amssymb,mathtools}
\usepackage{amsthm}
\usepackage{bm}                          % bold vectors and Greek letters
\usepackage[per-mode=symbol]{siunitx}    % \qty{9.81}{\metre\per\second\squared}

% ---------- Figures ----------
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.pathmorphing}
% \usepackage[siunitx]{circuitikz}       % circuit diagrams
% \usepackage{tikz-feynman}              % Feynman diagrams (automatic layout needs LuaLaTeX)

% ---------- Links (load hyperref last) ----------
\usepackage[colorlinks=true,linkcolor=blue!50!black,urlcolor=blue!50!black]{hyperref}

% ---------- Definitions, results, examples ----------
\theoremstyle{definition}
\newtheorem{definition}{Definition}[chapter]
\newtheorem{example}[definition]{Example}
\theoremstyle{plain}
\newtheorem{result}[definition]{Result}
\theoremstyle{remark}
\newtheorem*{note}{Note}

% ---------- Shortcuts: vectors and derivatives ----------
\renewcommand{\vec}[1]{\bm{#1}}                 % \vec{F}  -> bold F
\newcommand{\uvec}[1]{\hat{\bm{#1}}}            % \uvec{x} -> unit vector
\newcommand{\dd}{\mathop{}\!\mathrm{d}}         % \dd t    -> upright d
\newcommand{\dv}[2]{\frac{\mathrm{d}#1}{\mathrm{d}#2}}               % \dv{x}{t}
\newcommand{\dvn}[3]{\frac{\mathrm{d}^{#3}#1}{\mathrm{d}#2^{#3}}}    % \dvn{x}{t}{2}
\newcommand{\pdv}[2]{\frac{\partial #1}{\partial #2}}                % \pdv{f}{x}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}   % \abs{x}, \abs*{x} scales
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\newcommand{\e}{\mathrm{e}}                     % Euler's number, upright

% ---------- One chapter per lecture ----------
\newcommand{\lecture}[2]{\chapter{#1}\noindent\textit{#2}\par\medskip}

% \includeonly{lectures/lec01}   % uncomment to compile only this lecture

\title{PHYS 101: Classical Mechanics\\[4pt] \large Lecture Notes}
\author{Your Name}
\date{Fall 2026}

\begin{document}
\maketitle
\tableofcontents

\include{lectures/lec01}
% \include{lectures/lec02}

\end{document}

How to adapt it:

  • Course and title. Change the \title, \author and \date lines. Nothing else in the preamble needs editing to start.
  • Paper size. Use letterpaper instead of a4paper in the US.
  • Circuits or particle physics. Uncomment circuitikz for an electronics course or tikz-feynman for particle physics. Feynman diagrams placed by hand compile with pdflatex; the package's automatic vertex layout needs LuaLaTeX.
  • Plots. Add \usepackage{pgfplots} and \pgfplotsset{compat=1.18} to plot functions and lab data directly in the notes.
  • Macros. Add a macro the second time you type the same long expression, not before. A short, known list of macros is easier to remember during a lecture than a large one.

Worked example: the simple harmonic oscillator

Create a folder called lectures next to main.tex and save this as lectures/lec01.tex. It shows the template in use: a definition box, an align derivation with labels, \eqref references, a TikZ figure, a result with a check, and a numerical example with siunitx units.

% lectures/lec01.tex
\lecture{Simple harmonic motion}{Lecture 1, September 8, 2026}

\section{The mass on a spring}

\begin{definition}
A system moves in \emph{simple harmonic motion} when the restoring force is
proportional to the displacement from equilibrium and points back toward it.
\end{definition}

A block of mass $m$ slides on a frictionless floor, attached to a spring of
constant $k$ (\autoref{fig:spring}). Hooke's law and Newton's second law give
\begin{align}
  F &= -kx, \label{eq:hooke}\\
  m\dvn{x}{t}{2} &= -kx. \label{eq:newton}
\end{align}
Dividing \eqref{eq:newton} by $m$ and writing $\omega^2 = k/m$:
\begin{equation}
  \dvn{x}{t}{2} + \omega^2 x = 0. \label{eq:sho}
\end{equation}

\begin{figure}[ht]
  \centering
  \begin{tikzpicture}
    \draw[thick] (0,0)--(0,1.2);
    \draw (0,0)--(4.2,0);
    \draw[decorate,decoration={coil,segment length=5pt,amplitude=4pt}] (0,0.5)--(2,0.5);
    \draw[fill=gray!20] (2,0) rectangle (3,1) node[midway] {$m$};
    \node[above] at (1,0.7) {$k$};
    \draw[-{Stealth}] (2.5,1.3)--(3.6,1.3) node[right] {$x$};
  \end{tikzpicture}
  \caption{Block on a spring. Positive $x$ points to the right.}
  \label{fig:spring}
\end{figure}

\begin{result}
The general solution of \eqref{eq:sho} is
\begin{equation}
  x(t) = A\cos(\omega t + \phi), \qquad \omega = \sqrt{\frac{k}{m}},
  \label{eq:solution}
\end{equation}
where the amplitude $A$ and phase $\phi$ come from the initial conditions.
The period is $T = 2\pi/\omega = 2\pi\sqrt{m/k}$.
\end{result}

\begin{proof}[Check]
Differentiating \eqref{eq:solution} twice gives
$\dvn{x}{t}{2} = -\omega^2 A\cos(\omega t + \phi) = -\omega^2 x$,
which is \eqref{eq:sho}.
\end{proof}

\subsection{Energy}
With $\dot{x} = -A\omega\sin(\omega t + \phi)$ and $m\omega^2 = k$,
\begin{align}
  E &= \tfrac{1}{2}m\dot{x}^2 + \tfrac{1}{2}kx^2 \notag\\
    &= \tfrac{1}{2}kA^2\sin^2(\omega t + \phi) + \tfrac{1}{2}kA^2\cos^2(\omega t + \phi) \notag\\
    &= \tfrac{1}{2}kA^2. \label{eq:energy}
\end{align}
The total energy does not depend on time, as expected without friction.

\begin{example}
A \qty{0.50}{\kilogram} block on a spring with $k = \qty{200}{\newton\per\metre}$
is pulled \qty{3.0}{\centi\metre} from equilibrium and released. Then
\begin{align*}
  \omega &= \sqrt{\frac{\qty{200}{\newton\per\metre}}{\qty{0.50}{\kilogram}}}
          = \qty{20}{\radian\per\second}, \\
  T &= \frac{2\pi}{\omega} \approx \qty{0.31}{\second}, \\
  E &= \tfrac{1}{2}kA^2 = \tfrac{1}{2}\,(\qty{200}{\newton\per\metre})(\qty{0.030}{\metre})^2
     = \qty{0.090}{\joule}.
\end{align*}
\end{example}

\begin{note}
The frequency in \eqref{eq:solution} does not depend on $A$. That is only true
while \eqref{eq:hooke} holds, so very large stretches break the model.
\end{note}

Compile main.tex (not the lecture file). The first run writes the labels and table of contents; the second run fills in the equation numbers, so run it twice or use latexmk -pdf main, which reruns for you. A few details worth copying:

  • align puts the & before the = sign so each step lines up. Use \notag on intermediate lines you will never reference, so only the results get numbers.
  • Labels with prefixes (eq:, fig:) make references easy to read in the source. \eqref{eq:sho} prints "(1.3)" with parentheses; \autoref{fig:spring} prints "Figure 1.1".
  • siunitx handles spacing between number and unit, the upright unit font, and the per-symbol, so \qty{0.090}{\joule} never ends up as an italic "J" glued to the number.
  • Writing a "Check" after a result (substituting the solution back, checking units, checking a limit) is the habit that catches sign errors before an exam does.

For practice, pause this lecture on forces and friction and typeset the force balance for one of its examples in a new lec02.tex.

Where to find ready-made physics templates

You do not need to start from scratch if you prefer a designed layout. These are the reliable sources:

Source What you will find Best for
Overleaf template gallery Thousands of user and publisher templates; search "lecture notes", "physics" or "lab report" Opening a template in the browser with nothing to install
LaTeXTemplates.com A curated set of templates grouped by type (articles, books, assignments and more), each with a preview and a downloadable source Clean, well-commented layouts you can learn from
CTAN classes such as tufte-latex (the tufte-handout class) Wide margins for side notes, in the style of Edward Tufte's books Notes where you want margin comments next to derivations
tcolorbox package Colored, breakable boxes for definitions, key equations and warnings Adding visual structure to the template above
Gilles Castel's published university setup on GitHub The scripts and setup behind his widely read lecture note workflow Seeing how a fast live note-taker organizes macros and files

When you pick up any template, check three things before committing a semester to it: it compiles on your setup without errors, it numbers equations the way you want (per chapter or per section), and you can find where its macros are defined. Templates that load dozens of packages are slower to compile and harder to fix when something breaks mid-lecture.

Methods for taking physics notes in LaTeX

The template is the easy part. The harder question is how to fit LaTeX into the pace of a real course.

Live in the lecture or rewritten after class

There are two workable approaches, and most people settle on one of them after a few weeks.

Approach How it works Works when Watch out for
Live LaTeX Type the notes in class with snippets and a fixed set of macros Lectures are mostly equations on slides or a board, and you type fast Diagrams. Sketch them on paper and redraw later, or leave a % TODO figure comment
Paper first, LaTeX after Write by hand in class, then rewrite into LaTeX the same day Fast-moving lectures with many diagrams, or you are still learning LaTeX Letting the backlog grow. A rewrite done a week later is a chore, done the same evening it is revision

The rewrite method has a real study benefit: retyping a derivation forces you to follow every step, so it doubles as review. Live LaTeX gives you clean notes immediately but leaves less room to think during the lecture. A common middle ground is to type the equations live and write the sentences around them afterward.

Overleaf or a local install

  • Overleaf runs in the browser, needs no installation, and lets classmates edit the same project. The free plan is enough for lecture notes; paid plans add features such as Git and GitHub sync and longer compile times. It needs an internet connection.
  • A local install means a TeX distribution (TeX Live on Linux or Windows, MacTeX on macOS, or MiKTeX on Windows) plus an editor: VS Code with the LaTeX Workshop extension, TeXstudio, or Vim with VimTeX. It works offline, compiles large notes faster on a decent laptop, and lets you use snippet tools and Git. On Windows, follow this step-by-step guide to installing LaTeX on Windows.

Either way, use continuous compilation (latexmk -pdf -pvc main locally, or Overleaf's auto-compile) so the PDF updates as you type and you catch errors line by line instead of all at once.

Snippets: the trick that makes live notes possible

Gilles Castel's 2019 write-up, "How I'm able to take notes in mathematics lectures using LaTeX and Vim", is the best-known example of live LaTeX notes. The core idea is text-expansion snippets: you type a short trigger and the editor expands it into LaTeX, often automatically. In Vim this is the UltiSnips plugin; in VS Code the HyperSnips extension uses a similar format. Two snippets in UltiSnips syntax:

snippet beg "begin/end environment" bA
\begin{$1}
	$0
\end{$1}
endsnippet

snippet dv "derivative" w
\dv{${1:x}}{${2:t}}$0
endsnippet

The b flag expands only at the start of a line, A expands without pressing Tab, and w expands at a word boundary. Start with five or six snippets for what you type most (environments, fractions, derivatives, subscripts, \qty) and add more only when you notice yourself typing the same thing repeatedly.

One file per lecture with \include

Keep main.tex as the preamble plus a list of \include lines, and put each lecture in its own file:

phys101/
  main.tex
  lectures/
    lec01.tex
    lec02.tex
    lec03.tex
  figures/
    spring.pdf

\include{lectures/lec03} starts the lecture on a new page and lets you add \includeonly{lectures/lec03} in the preamble, so LaTeX compiles only today's lecture while keeping the page and equation numbers from the others. That keeps compile times short late in the semester. Two rules: an included file cannot itself contain \include (use \input inside it), and \includeonly must sit in the preamble, before \begin{document}.

Put the folder in Git (or at least a synced folder) and commit after each lecture. Plain-text .tex files make every change visible, and you can always get back last week's version of a derivation you edited.

Tools that save time

  • Detexify (detexify.kirelabs.org): draw a symbol with the mouse and it tells you the LaTeX command.
  • Mathpix Snip: converts a photo or screenshot of an equation into LaTeX code, useful for copying a long expression from a textbook or a handwritten page.
  • pgfplots: plots lab data from a CSV file inside the notes, so the graph updates when the data does.
  • Jupyter notebooks: when a lecture includes numerical work, keep the code and plots in a notebook and include the exported figures in your LaTeX notes.

Common errors and fixes

Error message Usual cause Fix
Missing $ inserted A math command such as \omega or ^ used outside math mode Wrap it in $...$
Undefined control sequence A typo in a command, or a macro from a package you did not load Check the spelling, or add the package or macro to the preamble
Command \dv already defined You loaded physics and kept the template's derivative macros Delete one set of definitions
Equation shows (??) Labels not resolved yet Compile twice, or use latexmk
siunitx error about an unknown unit A unit macro not defined, such as a misspelled \metre Use the full unit names from the siunitx manual, or write the unit literally, for example \qty{3}{m}

When LaTeX is the wrong tool for your notes

LaTeX is the right choice when you want clean, searchable notes full of equations that you will reuse for exams, problem sets and later courses. It is a poor fit in some cases, and better options exist:

  • Handwriting apps (GoodNotes, Notability, OneNote with a stylus). Best for diagram-heavy courses such as optics or circuits, where drawing is faster than coding a figure.
  • Markdown apps with math (Obsidian, Notion, or Jupyter). Best for quick notes where you want LaTeX-style equations without compiling a document.
  • LyX. Best for people who want LaTeX output with a visual editor and menus instead of raw source.
  • Typst. Best for people starting fresh who want a simpler markup language with very fast compiles, as long as no one requires a .tex file.

Turning your notes into study material

Notes are only useful if you review them. Once a lecture is compiled, you can upload the PDF to Scholarly and make flashcards from the PDF, a practice quiz, or a narrated video lecture of the derivation, and ask questions in chat with answers cited to your own notes. Scholarly does not open or compile your own .tex files, so keep writing the notes in Overleaf or your local editor and treat the PDF as the source you study from.