20
0
Files
cdsc_tex/slides_template/example.tex
Benjamin Mako Hill 79bd697440 Give frame titles as \frametitle so they are tagged as headings
Only \frametitle{...} produces a tagged heading in ltx-talk. Giving the
title as the argument to \begin{frame}{...} silently yields a frame with
no heading element at all, which is why the deck had sections but nothing
per slide. Use the command form throughout.

The resulting headings sit at ltx-talk's default H4, nested under the H1
that a section produces. That level can be remapped with \tagpdfsetup if
assistive software turns out to want frame titles higher up.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 19:16:25 -07:00

87 lines
2.3 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}
% Font paths must stay inside this directory. LuaTeX fails to resolve a
% parent-relative Path= and dies with an unhelpful empty-filename error.
\setsansfont{OpenSans}[
Path = fonts/OpenSans/, Extension = .ttf,
UprightFont = *-Regular, BoldFont = *-Bold,
ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic]
\setmonofont{RobotoMono}[
Path = fonts/RobotoMono/, Extension = .ttf,
UprightFont = *-Regular, BoldFont = *-Bold,
ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic]
\definecolor{makopurple1}{RGB}{57,39,91}
\definecolor{makopurple4}{RGB}{124,99,173}
\definecolor{accent}{RGB}{124,99,173}
\usepackage{trantor}
\usepackage{talk-notes}
% trantor's dark panels (section pages and \standout) default to black
\colorlet{TrantorDark}{makopurple1}
\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.}
\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}
\standout{Example and Data Appendix}
\end{document}