如何在 scrrprt 中取得全域方程式編號?

如何在 scrrprt 中取得全域方程式編號?

可能的重複:
對圖形、表格和其他文件元素進行連續編號或按章/節編號

當我在文件中我喜歡的任何環境中插入方程式時,scrrprt我會得到類似 (1.1) 的編號。但我的文檔中的編號方程式很少,因此我想獲得像 (1) 這樣的編號。我該如何改變這件事?

答案1

使用更改中心包裹。

\documentclass{scrreprt}
\usepackage{chngcntr}
\counterwithout{equation}{chapter}
\begin{document}
\chapter{a chapter}
\begin{equation}
a = b
\end{equation}
\chapter{another chapter}
\begin{equation}
a = b
\end{equation}
\end{document}

相關內容