ltx-talk classThe examples on this page demonstrate various features of the ltx-talk class.
The example may be used as-is or may be edited using the built in editor.
The Generate Tagged PDF button will run LaTeX (lualatex-dev) on the file
and return a list of links:
show-pdf-tags;Lists are perhaps the most common structure in presentation frames.
A very common pattern: reveal the list one item at a time.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{List overlays}
\begin{document}
\begin{frame}
\begin{itemize}[<+->]
\item First
\item Second
\item Third
\end{itemize}
\end{frame}
\end{document}
We can use the relative specification . to reveal two items at once.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Relative overlays}
\begin{document}
\begin{frame}
\begin{itemize}[<+->]
\item First
\item Second
\item Third
\item<.-> Fourth
\end{itemize}
\end{frame}
\end{document}
Actions can adjust how content appears: here we highlight as we go.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{List actions}
\begin{document}
\begin{frame}
\begin{itemize}[<alert@+>]
\item First
\item Second
\item Third
\end{itemize}
\end{frame}
\end{document}
Choosing a color scheme for the header and footer is one common way to make a presentation more visually appealing.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Footer colors}
\EditInstance{header}{std}{
background-color = blue!50,
color = white,
}
\EditInstance{footer}{std}{
background-color = blue!50
}
\begin{document}
\begin{frame}
\frametitle{Frametitle}
content
\end{frame}
\end{document}
Background images are another common customization.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Background images}
\begin{document}
\begin{frame}
Some text
\end{frame}
\AddToHook{shipout/background}
{\put(0cm, -\paperheight)
{\includegraphics[artifact, width = \paperwidth, height = \paperheight]
{example-image-a}}}
\begin{frame}
Some text
\end{frame}
\end{document}
Currently, control of the content in headers and footers is quite simple: you can choose the entries and their ordering.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\EditInstance{footer}{std}{
color = black!50,
separator = \hfill|\hfill,
element-order = {date, author, title, institute, framenumber},
right-hspace = 3mm,
left-hspace = 3mm,
}
\author{Author Name}
\title[short-title = {Presentation title}]
{A Long Presentation Title Which Would Not Fit in a Footer!}
\institute{Interesting Conference}
\begin{document}
\begin{frame}
\maketitle[framestyle = wallpaper]
\end{frame}
\begin{frame}
content
\end{frame}
\end{document}
There is more control available in terms of the title page.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\EditInstance{footer}{std}{
background-color = black!50,
color = black!25,
separator = \hfill|\hfill,
element-order = {date, author, title, institute, framenumber},
right-hspace = 3mm,
left-hspace = 3mm,
}
\author{Author Name}
\title{Presentation Title}
\institute{Interesting Conference}
\begin{document}
\begin{frame}
\maketitle[framestyle = wallpaper, horizontal-alignment = left]
\end{frame}
\begin{frame}
content
\end{frame}
\end{document}
‘Floats’ do not really float in presentations, but they can still be useful as part of the overall structure.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Float alignment}
\EditInstance{floatenv}{std}{horizontal-alignment = center}
\begin{document}
\begin{frame}
Some content
\begin{figure}
`Float' content.
\end{figure}
More content.
\end{frame}
\end{document}
Math mode works in the standard LaTeX way: here we make some changes to the font.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\IfFontExistsTF{Pennstander-Regular.otf}{
\setmainfont{Pennstander-Regular.otf}
\setmathfont{PennstanderMath-Regular.otf}
}
{}
\title{The Quadratic Formula}
\subtitle{$ax^{2} + bx + c = 0$}
\author{David}
\institute{The \LaTeX{} Project}
\date{2025-12-06}
\begin{document}
\maketitle
\begin{frame}
\frametitle{Completing the Square}
\large
First, complete the square
\begin{itemize}[action-spec = <+->, item-vspace = 20pt, begin-vspace = 20pt]
\item $ax^{2} + bx +c=0$
\item $x^{2} + \frac{b}{a}x + \frac{c}{a} = 0$
\item $x^{2} + \frac{b}{a}x + \bigl(\frac{b}{2a}\bigr)^{2}
= -\frac{c}{a} + \bigl(\frac{b}{2a}\bigr)^{2}$
\item $\bigl(x + \frac{b}{2a}\bigr)^{2}
= -\frac{c}{a} + \bigl(\frac{b}{2a}\bigr)^{2}$
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Solve for~$x$}
\large
Now, solve for~$x$
\begin{itemize}[action-spec = <+->, item-vspace = 20pt, begin-vspace = 20pt]
\item $\bigl(x + \frac{b}{2a}\bigr)^{2}
= -\frac{c}{a} + \bigl(\frac{b}{2a}\bigr)^{2}$
\item $x + \bigl(\frac{b}{2a}\bigr)
= \pm \sqrt{-\frac{c}{a} + \bigl(\frac{b}{2a}\bigr)^{2}}$
\item $x = -\bigl(\frac{b}{2a}\bigr)
\pm \sqrt{-\frac{c}{a} + \bigl(\frac{b}{2a}\bigr)^{2}}$
\item $\displaystyle x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}$
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{The Quadratic Formula}
\large
The solution of the quadratic equation.
\[
ax^{2} + bx + c = 0
\]
where~$a$ is non-zero, is given by the formula
\[
x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}
\]
\end{frame}
\end{document}
Overlays use opacity (transparency) to make material invisible: by adjusting the amount, part-visible content is possible.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Setting opacity}
\EditInstance{hidden}{std}{opacity = 0.15}
\begin{document}
\begin{frame}
\begin{itemize}[<+->]
\item First
\item Second
\item Third
\end{itemize}
\end{frame}
\end{document}
The standard approach to verbatim content uses the frame* environment.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Verbatim}
\usepackage{fancyvrb}
\begin{document}
\begin{frame*}
Text
\begin{actionenv}<+-|alert@+>
\begin{Verbatim}[gobble = 6]
Some content
%#$_\
XXX
\end{Verbatim}
\end{actionenv}
\uncover<+->{More text}
\end{frame*}
\end{document}
To show the frame* environment itself, a second name is safest: this is shown
here using standard LaTeX commands.
\DocumentMetadata{tagging = on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Fame in verbatim}
\NewEnvironmentCopy{Frame}{frame*}
\usepackage{fancyvrb}
\begin{document}
\begin{Frame}
\frametitle{Demonstrating the class}
\begin{Verbatim}[gobble = 4]
\begin{frame*}
Some content here
\end{frame*}
\end{Verbatim}
\end{Frame}
\end{document}
Various counters are available: the overall length of the presentation is common requirement.
\DocumentMetadata{tagging=on, pdfstandard = ua-2}
\documentclass{ltx-talk}
\title{Frame counters}
\begin{document}
\begin{frame}
abc
\pause
test
\end{frame}
\begin{frame}
Total frame number: \RefProperty{lastpage}{totalframes}
\end{frame}
\begin{frame}
abc
\end{frame}
\end{document}