2025-03-27

Beamer: \includeonlyframes allows you to include just a single frame.

Science
Beamer: \includeonlyframes allows you to include just a single frame.
SHARE
shareshareshare

I'm using \includeonlyframes to fine-tune my presentation and have encountered this issue.

MWE:

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{multicol} % This package allows for the creation of multi-column layouts in your document.
\includeonlyframes{section1subsection1frame1, section1subsection1frame2}

\end{document}

\section{Chapter One}

\begin{frame}[label=section1subsection1slide1]{Slide 1}
    \begin{columns}
        \column{0.5\textwidth}
        Blah blah.

        \column{0.5\textwidth}
        BlahBlah blah.
    \end{column}
\end{slide}

\begin{frame}[label=section1subsection2]{Slide 2}
    \begin{columns}
        \column{0.5\textwidth}
        BlahBlahBlah blah.
        
        \column{0.5\textwidth}
        BlahBlahBlahBlah blah.
    \end{column}
\end{slide}

\section{Chapter Two}

\begin{frame}[label=section2subsection1frame]{Slide 3}
    \begin{columns}
        \column{0.5\textwidth}
        BlahBlahBlahBlahBlah blah.

        \column{0.5\textwidth}
        BlahBlahBlahBlahBlahBlah blah.
    \end{column}
\end{slide}

\begin{frame}[label=sec2sub1fra2]{幻灯片 4}
    \begin{columns}
        \column{0.5\textwidth}
        BlahBlahBlahBlahBlahBlahBlah blah.
        
        \column{0.5\textwidth}
        BlahBlahBlahBlahBlahBlahBlahBlah blah.
    \end{column}
\end{slide}

\end{document}

Anticipated outcome: Both Slide 1 and Slide 2 should be present.

Current outcome: Only Slide 1 is present.

The compilation configurations are as follows: latexmk with additional arguments -synctex=1, -interaction=nonstopmode, -file-line-error, -lualatex. The version of latexmk being used is 4.85 and the version of lualatex is 1.18.1 (MiKTeX 24.4).

Newsletter

Get life tips delivered directly to your inbox!

Sign Up!