我之前问过一个问题,但那是针对案例的。在这里,我想在将标签集重置为默认值之前中途重新标记一些方程式。
代码:
\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}
输出:
有没有办法冻结当前方程编号n
并开始将某些方程标记为(na) (nb)...
等等?
答案1
您希望subequations
;标签对于环境的每次使用都应是唯一的。
\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}