1

I have asked a previous question, but that was for cases. Here, I would like to relabel some equations midway before resetting the labelling set to default.

Code:

\documentclass[12pt]{beamer}
\usepackage{amsmath}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape]
%\pgfpagesuselayout{2 on 1}[a4paper]
%\usetheme{Singapore}
\usetheme{Boadilla}
\usepackage{bm}
%\usefonttheme[?options?]{structuresmallcapsserif}
%\definecolor{beamer@blendedblue}{RGB}{203,140,55} % changed this
\definecolor{beamer@blendedblue}{RGB}{0,102,102} % changed this
%\definecolor{beamer@blendedblue}{RGB}{0,153,153} % changed this
\usefonttheme{professionalfonts} %To get the accents aligned correctly, albeit in Computer Modern Roman
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\begin{document}
    %-----------------------------------------------------------------New slide ----------------------------------------------------%
    \begin{frame}{Sample}
        \setcounter{equation}{10}
        \begin{equation}
            F = ma
        \end{equation}
        % Starting from here I would like 11a, 11b,...
        \begin{align}
            a + b &= c\\
            d + e &= f
        \end{align}
        \begin{equation}
            a = 1
        \end{equation}
        % Starting from here, I would like 12, 13,..
        \begin{equation}
            f = 5
        \end{equation}
        \begin{equation}
            F = -kx
        \end{equation}
    \end{frame}
\end{document}

Output:

enter image description here

Is there a way to freeze the current equation number n and start labeling some equations as (na) (nb)... and so on?

Superman
  • 1,615

1 Answers1

2

You want subequations; the label should be unique for each use of the environment.

\documentclass[12pt]{beamer}
\usepackage{amsmath}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape]
%\pgfpagesuselayout{2 on 1}[a4paper]
%\usetheme{Singapore}
\usetheme{Boadilla}
\usepackage{bm}
%\usefonttheme[?options?]{structuresmallcapsserif}
%\definecolor{beamer@blendedblue}{RGB}{203,140,55} % changed this
\definecolor{beamer@blendedblue}{RGB}{0,102,102} % changed this
%\definecolor{beamer@blendedblue}{RGB}{0,153,153} % changed this
\usefonttheme{professionalfonts} %To get the accents aligned correctly, albeit in Computer Modern Roman
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\begin{document}
    %-----------------------------------------------------------------New slide ----------------------------------------------------%
    \begin{frame}{Sample}
        \setcounter{equation}{10}
        \begin{subequations}\label{freeze}
        \begin{equation}
            F = ma \tag{\ref{freeze}}
        \end{equation}
        \begin{align}
            a + b &= c\\
            d + e &= f
        \end{align}
        \begin{equation}
            a = 1
        \end{equation}
        \end{subequations}
        % Starting from here, I would like 12, 13,..
        \begin{equation}
            f = 5
        \end{equation}
        \begin{equation}
            F = -kx
        \end{equation}
    \end{frame}
\end{document}

enter image description here

egreg
  • 1,121,712
  • Looks like a good answer! What if I have two slides and I want to apply the subequations environment on both slides with the letter suffixes on the second slide following from the previous slide? – Superman Jun 11 '20 at 22:38
  • Right now, the answer applies for only one slide. How to apply it to two or more consecutive slides? – Superman Jun 11 '20 at 22:44