※ 引述《LaTeX <[email protected]>, 看板: LaTeX》之铭言:
: 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}
好像不是我要的
我要
\begin{exercise}
......
\begin{answer}
\end{answer}
\end{exercise}
就是把 answer 放在 exercise 里面
我不知道该如何让它们两个用同样的 counter 数字
也就是同一组的 exercise 及 answer 的计数必须相同
总而言之搞不出一个好方法
※ 编辑: voyante 来自: 122.147.89.5 (08/11 08:52)