新浪博客

`@' now normal 'letter'
\@addtoreset{equation}{section}
\makeatother %
`@' is restored as 'non-letter'
\renewcommand\theequation{\oldstylenums{\thesection}%
.\oldstylenums{\arabic{equation}}}

演示代码:
\documentclass{article}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{135.0pt}
\makeatletter % `@' now normal 'letter'
\@addtoreset{equation}{section}
\makeatother % `@' is restored as 'non-letter'
\renewcommand\theequation{\oldstylenums{\thesection}%
.\oldstylenums{\arabic{equation}}}
\begin{document}
\section{Equations\ldots}
\begin{equation} (a+b)^2 = a^2 + 2ab + b^2\end{equation}
\begin{equation} (a-b)^2 = a^2 - 2ab + b^2\end{equation}

\section{\ldots per section}
\begin{equation} (a+b)(a-b) = a^2 - b^2 \end{equation}
\end{document}

效果图如下:
LaTeX技巧74:公式编号与章节关联的标准方法

我的更多文章

下载客户端阅读体验更佳

APP专享