在该文档前面的部分,有一些标示如下的方程式:
(1) (some space) \frac{1}{/2}=0.5
(2) (some space) hi
现在,我想做这样的事情,切换方程编号并重新开始:
(a) (some space) hello
我怎样才能做到这一点?
答案1
像这样吗?
\documentclass[leqno,fleqn]{article}
\usepackage{amsmath} %% for \eqref macro
\setlength\textwidth{2in} % just for this example
\begin{document}
\begin{equation} \frac{1}{2}=0.5 \label{eq:1} \end{equation}
\begin{equation} \mbox{hi} \end{equation}
\setcounter{equation}{0} % reset the equation counter
\renewcommand{\theequation}{\alph{equation}} % change numbering from arabic to alphabetic
Now, I want to do something like this and switch the equation number and start over:
\begin{equation} \mbox{hello} \label{eq:a} \end{equation}
Here are cross-references to equations \eqref{eq:1} and \eqref{eq:a}.
\end{document}