Skip to article
Documentation

Beamer, code blocks, and writing assistance

Structure a presentation and keep code/prose tooling in the right regions.

On this page

Create a separate presentation root#

A Beamer document is independent of an article root:

\documentclass{beamer}
\title{Reviewing a schema}
\begin{document}
\frame{\titlepage}
\section{Design}
\begin{frame}{Relationships}
  \begin{itemize}
    \item<1-> Model the key.
    \item<2-> Inspect its references.
    \item<3-> Review the generated SQL.
  \end{itemize}
\end{frame}
\end{document}

Mark the presentation as the main file before building it. Structure view follows sections, subsections, frames, and supported blocks, helping you navigate a large deck. Live templates for frames, columns, and blocks provide a starting shape; review overlay specifications and the compiled slide sequence.

Preserve code as code#

A listing should declare its language for injected editing support:

\usepackage{listings}
% Inside the document:
\begin{lstlisting}[language=Python]
print("hello")
\end{lstlisting}

Language injection uses the available IDE language support. Rendering a listing still belongs to LaTeX and its package options. The editor formatter should preserve verbatim/listing bodies instead of treating their punctuation as prose.

Use templates in the correct context#

LaTeX live/postfix templates help with prose wrappers and math. For example, a supported .bold wrapper produces a prose command, while math forms such as .hat or .frac belong in math context. Comments and verbatim regions intentionally suppress inappropriate suggestions.

Review prose separately#

Spellchecking and natural-language assistance focus on prose and comments while excluding commands, keys, URLs, math, and code where appropriate. A spelling suggestion cannot validate a label/citation identity. For a false warning in a generated or custom macro construct, compare the active root and language context before adding the token to a general dictionary.

Manual for version 2026.1.14 · Reviewed