看板LaTeX
標 題[問題] theorem 的 counter
發信站(null) (Sat Aug 10 14:42:09 2013)
轉信站ptt!news.ntu!ctu-gate!news.nctu!usenet.stanford.edu!fx3no1889185qab.0!
Is this what you want?
\section{Testing}
\begin{exercise}
Ex1
\end{exercise}
\begin{answer}
Ans1
\end{answer}
\renewcommand{\theanswer}{\theexercise} <---
\begin{exercise}
Ex2
\end{exercise}
\begin{answer}
Ans2
\end{answer}