我怎样才能更改公式编号,以便章节编号位于括号之外,如下所示:
1(1)
代替
(1.1)
答案1
您需要重新定义\tagform@
(amsmath
删除外括号)和\theequation
(将其添加到所需位置):
\documentclass{book}
\usepackage{amsmath}
\renewcommand\theequation{\thechapter(\arabic{equation})}
\makeatletter
\def\tagform@#1{\maketag@@@{\ignorespaces#1\unskip\@@italiccorr}}
\makeatother
\begin{document}
\chapter{Test Chapter}
\eqref{eq:test}
\begin{equation}\label{eq:test}
a=b.
\end{equation}
\end{document}
答案2
\renewcommand\theequation{\thechapter(\arabic{equation})}