怎么将公式编号写成(n-1),(n-2)的形式

发布于 2021-09-12 21:01:21

image.png

\begin{align}
    \mathcal{G}_n&=\exp[\mathbf{i}\frac{\alpha-\alpha_n}2(m-n)]\\
    \mathcal{G}_s&=\exp[-\mathbf{i}(\alpha-\alpha_s)(m-n)]
\end{align}

查看更多

关注者
0
被浏览
886
2 个回答
Swit
Swit 2021-09-12
LaTeX nubility!
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a=b
\end{equation}
\begin{subequations}
\renewcommand{\theequation}{\theparentequation--\arabic{equation}}
\begin{align}
c=d\\
e=f
\end{align}
\end{subequations}
\end{document}

QQ截图20210912212746.png

disenchanted
disenchanted 2021-09-12
这家伙很懒,什么也没写!

答案:

\counterwithin{equation}{section}
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}}

放到documentclass下面

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览