LaTeX Handouts
This skill should be used when the user asks to "create LaTeX handout", "compile handout", "generate presentation handout", "create PDF document from slides", or needs guidance on LaTeX document structure, formatting, embedding images, or creating comprehensive presentation materials.
What this skill does
# LaTeX Handouts
LaTeX provides professional typesetting for presentation handouts that combine slide images, presenter notes, and supplementary research into comprehensive reference documents.
## Dependency Checking
Before generating handouts, check dependencies using:
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/check-handout-deps.sh
```
**Exit codes:**
- 0: All dependencies available (full handout with images and rich formatting)
- 1: pdflatex missing (BLOCKER - cannot generate handout)
- 2: LaTeX packages missing (use basic formatting)
- 3: Playwright missing (text-only handout)
## Graceful Degradation Strategies
**When LaTeX packages unavailable (exit code 2):**
- Skip `\usepackage{tcolorbox}` and `\usepackage{enumitem}` in preamble
- Use standard LaTeX boxes instead of tcolorbox
- Use default enumerate/itemize instead of enumitem
- Result: Basic but functional handout
**When Playwright unavailable (exit code 3):**
- Skip slide PNG export entirely
- Omit `\begin{figure}...\end{figure}` blocks for slide images
- Still include all prose paragraphs (Overview, Key Considerations, Technical Details)
- Still include all Further Reading links
- Result: Text-only reference document (still valuable)
**When pdflatex unavailable (exit code 1):**
- Cannot generate PDF handout
- Offer to create .tex file for user to compile later
- Provide installation instructions
## Handout Writing Principles
**Critical:** Handouts should be **comprehensive standalone documents**, not just copies of slides.
### Content Requirements
✅ **DO:**
- Write in **complete prose paragraphs** (2-4 sentences minimum)
- **Expand on slide content** - explain concepts in detail
- **Add context** - WHY things matter, HOW they work
- **Include researched URLs** - 3-5 quality resources per section
- **Provide examples** - real-world applications and use cases
- **Explain trade-offs** - discuss implications and alternatives
- Make it **standalone** - reader understands without attending presentation
❌ **DON'T:**
- Copy bullet points from slides verbatim
- Write generic descriptions
- Use slide content as handout content
- Skip research for further reading
- Assume reader attended presentation
### Writing Style
**For each slide, write:**
1. **Overview paragraph** (2-4 sentences)
- Transform slide bullets into flowing narrative
- Explain the concept in complete detail
- Provide context and connections
2. **Key Considerations paragraph** (2-4 sentences)
- Discuss implications and trade-offs
- Explain WHY it matters
- Provide real-world examples
3. **Technical Details paragraph** (if applicable)
- Explain HOW things work (not just WHAT)
- Code explanations in prose
- Architecture decisions and reasoning
4. **Further Reading list** (3-5 URLs)
- Official documentation
- Authoritative articles
- Tutorials and guides
- Each with specific description of value
## Document Structure
### Basic Handout Template
```latex
\documentclass[11pt,a4paper]{article}
% Essential packages
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{fancyhdr}
% Document metadata
\title{Presentation Title}
\author{Author Name}
\date{\today}
% Header/footer setup
\pagestyle{fancy}
\fancyhead[L]{Presentation Title}
\fancyhead[R]{\thepage}
\fancyfoot[C]{}
\begin{document}
\maketitle
\tableofcontents
\newpage
% Content sections
\section{Introduction}
Content here...
\end{document}
```
### Document Classes
**article** - Standard documents
- Best for: Short handouts (1-20 pages)
- Features: Simple structure, no chapters
- Use when: Single presentation handout
**report** - Longer documents
- Best for: Extended handouts (20+ pages)
- Features: Chapters supported, more structure
- Use when: Multi-session course materials
**scrartcl/scrreprt** - KOMA-Script alternatives
- Best for: Modern, customizable layouts
- Features: Better typography, more options
- Use when: Advanced formatting needed
## Essential Packages
### Graphics and Images
```latex
\usepackage{graphicx} % Include images
\usepackage{float} % Better float positioning
% Usage
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{slide-01.pdf}
\caption{Introduction Slide}
\label{fig:intro}
\end{figure}
```
### Layout and Formatting
```latex
\usepackage[margin=1in]{geometry} % Page margins
\usepackage{multicol} % Multiple columns
\usepackage{parskip} % Paragraph spacing
\usepackage{setspace} % Line spacing
% Multi-column sections
\begin{multicols}{2}
Content in two columns
\end{multicols}
```
### Hyperlinks and References
```latex
\usepackage{hyperref}
% Configuration
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
citecolor=green
}
% Usage
\href{https://example.com}{Link text}
\url{https://example.com}
```
### Code Listings
```latex
\usepackage{listings}
\usepackage{xcolor}
% Configuration
\lstset{
basicstyle=\ttfamily\small,
keywordstyle=\color{blue},
commentstyle=\color{green},
stringstyle=\color{red},
frame=single,
breaklines=true
}
% Usage
\begin{lstlisting}[language=Python]
def hello():
print("Hello, World!")
\end{lstlisting}
```
### Bibliography
```latex
\usepackage[backend=biber,style=apa]{biblatex}
\addbibresource{references.bib}
% In document
\cite{key}
% At end
\printbibliography
```
## Heading Hierarchy
**Use semantic heading levels rigorously and consistently:**
- `\section{}` - Major document divisions (Introduction, Presentation Content, Summary, Additional Resources)
- `\subsection{}` - Topic sections within presentation (matches slide deck sections/chapters)
- `\subsubsection{}` - Individual slide titles (each slide gets its own subsubsection heading)
- `\paragraph{}` - Content subdivisions within slides (Overview, Key Considerations, Technical Details, Further Reading)
**Rules:**
- Never skip heading levels (don't go from `\section{}` to `\subsubsection{}`)
- Use headings for semantic structure, not just visual formatting
- Keep heading text descriptive and assertion-based
- Each slide must have its own `\subsubsection{}` heading
## Handout Patterns
### Comprehensive Slide Documentation (RECOMMENDED)
Modern handout format with PNG slides and prose explanations:
```latex
\section{Topic Name}
\subsubsection{Specific Slide Title (Assertion Form)}
\begin{figure}[H]
\centering
\fbox{\includegraphics[width=0.72\textwidth]{exports/slide-005.png}}
\caption{Specific Slide Title}
\end{figure}
\paragraph{Overview:}
This section introduces the core concept of container orchestration in distributed systems.
Kubernetes provides declarative configuration management, allowing operators to specify desired
state rather than imperative commands. The reconciliation loop continuously monitors actual
state and makes adjustments to match the declared configuration, providing self-healing
capabilities automatically.
\paragraph{Key Considerations:}
The declarative approach fundamentally changes operational practices compared to traditional
imperative automation. When configuration drift occurs, the system automatically corrects it
without human intervention. This is particularly valuable in large-scale deployments where
manual intervention becomes impractical. However, it requires careful design of resource
specifications and understanding of reconciliation behavior during failures.
\paragraph{Technical Details:}
The control loop pattern uses three key components: controllers watch the API server for
changes, compare current state to desired state, and issue commands to reconcile differences.
Each controller operates independently, managing specific resource types. This distributed
control model provides scalability and fault tolerance, as controller failures don't cascade
across the system.
\paragraph{Further Reading:}
\begin{itemize}
\item \href{https://kubernetesRelated in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.