latex使公式不随章节编号我用LATEX在第二个chapter里写了个公式,用的\begin{equation} \end{equation},公式自动编号为(2.1),我想让公式编号变成(1),独立于chapter和section,请问应该怎么办?

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 03:32:18

latex使公式不随章节编号我用LATEX在第二个chapter里写了个公式,用的\begin{equation} \end{equation},公式自动编号为(2.1),我想让公式编号变成(1),独立于chapter和section,请问应该怎么办?
latex使公式不随章节编号
我用LATEX在第二个chapter里写了个公式,用的\begin{equation} \end{equation},公式自动编号为(2.1),我想让公式编号变成(1),独立于chapter和section,请问应该怎么办?

latex使公式不随章节编号我用LATEX在第二个chapter里写了个公式,用的\begin{equation} \end{equation},公式自动编号为(2.1),我想让公式编号变成(1),独立于chapter和section,请问应该怎么办?

latex 在 article 中公式默认是(1)、(2)... 编号,让公式按章节编号可以这样做:\numberwithin{equation}{section}

可是在 book 中,默认是按章节编号的:(1.1)、(1.2) ... (2.1)、(2.2),取消公式按章节编号,可以这样做:
\usepackage{chngcntr}
\counterwithout{equation}{chapter}
\counterwithout{equation}{section}

chngcntr 宏包和 \counterwithout 命令参数含义,参考 tex 的帮助文档:texdoc chngcntr