20
0
Files
cdsc_tex/slides_template/example.tex
Benjamin Mako Hill 9495928ff5 Show the new theme and notes features in the example
Adds a subsection with its divider, and after \appendix a table and a
figure, so the appendix numbering, table tagging and alt text all have
something exercising them. The table declares its header row, without which
the header cells are tagged TD like any other.

Frame titles are given as \frametitle rather than as the argument to
\begin{frame}, since only the command form is tagged as a heading.

The palette override moves above \usepackage{trantor} so the theme picks it
up, and the notes show both forms: plain \note and \note[item].

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 07:26:23 -07:00

117 lines
2.9 KiB
TeX

\DocumentMetadata{
tagging=on,
tagging-setup={math/setup=mathml-SE},
pdfstandard=ua-2,
pdfversion=2.0,
lang=en-US,
}
\documentclass[aspectratio=169]{ltx-talk}
\usepackage{unicode-math}
\usepackage{graphicx}
\usepackage{booktabs}
\input{fonts.tex}
\definecolor{makopurple1}{RGB}{57,39,91}
\definecolor{makopurple4}{RGB}{124,99,173}
\definecolor{accent}{RGB}{124,99,173}
\colorlet{TrantorDark}{makopurple1}
\usepackage{trantor}
\usepackage{talk-notes}
\hypersetup{pdfdisplaydoctitle=true,pdftitle={Presentation Title}}
\renewcommand{\titlelogo}{%
\includegraphics[height=1.4cm,
alt={Community Data Science Collective logo}]{figures/logo.pdf}}
% \e{} was the beamer template's emphasis command; ltx-talk provides \alert
\newcommand{\e}[1]{\alert{#1}}
\title{Presentation Title}
\subtitle{Presentation Subtitle}
\author{Benjamin Mako Hill}
\institute{University of Washington, Department of Communication}
\date{December 2, 1980}
\begin{document}
\maketitle
\section{Introduction}
\sectionpage
\begin{frame}
\frametitle{A sample slide}
A displayed formula:
\[ \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi} \]
An itemized list:
\begin{itemize}[<+->]
\item itemized item 1
\item itemized item 2
\item itemized item 3
\end{itemize}
\footline{Image credit: Shaw and Hill, 2099.}
\note<1>{Set up the integral before revealing anything else.}
\note{Mention that this is the Gaussian integral.}
\note<3->{Once the whole list is up, tie it back to the opening claim.}
\note[item]{Check the clock here.}
\note[item]{Ask whether anyone has seen the 2099 preprint.}
\end{frame}
\begin{frame}
\frametitle{Short frame title}
\e{A first} paragraph with \texttt{monospace text}.
And then \e{a second} paragraph.
\note{A note that applies to this whole frame.}
\end{frame}
\subsection{An Introductory Subsection}
\subsectionpage
\begin{frame}
\frametitle{After the subsection page}
Subsections get their own divider, showing the section above the subsection.
\note{The subsection page is trantor's, not ltx-talk's.}
\end{frame}
\appendix
\standout{Example and Data Appendix}
\begin{frame}
\frametitle{A table}
% without this the header cells are tagged TD like any other
\tagpdfsetup{table/header-rows={1}}
\begin{tabular}{lrr}
\toprule
Wiki & Editors & Articles \\
\midrule
English & 121{,}000 & 6{,}900{,}000 \\
German & 17{,}000 & 2{,}900{,}000 \\
Cebuano & 150 & 6{,}100{,}000 \\
\bottomrule
\end{tabular}
\note{Numbers are made up; the point is that the table is tagged.}
\end{frame}
\begin{frame}
\frametitle{A figure}
\includegraphics[width=0.3\linewidth,
alt={Community Data Science Collective logo}]{figures/logo.pdf}
Every figure needs alt text, or the artifact option if it is decoration.
\note{Alt text reaches the PDF here, unlike under beamer.}
\end{frame}
\end{document}