我想为学生写一份练习表。我想将问题、提示和证明集中在 .tex 文件中的同一位置。
然后我想在 .tex 的特定部分显示问题、提示和证明。
伪代码如下:
\begin{exercise}[my_exercise_1]%my_exercise_1 would be the label of the exercise
\name Continuum hypothesis
\difficulty \easy
\question Prove...
\hint You should think about this...
\solution You just have to...
\end{exercise}
\begin{exercise}[my_exercise_2]
\name Pythagorian Theorem
\difficulty \advanced
\question My question is...
\hint You should think about this...
\solution You just have to...
\end{exercise}
\section{Questions}
% do something to print the question of my_exercice_1
% do something to print the question of my_exercice_2
\section{Hints}
% do something to print the hints of my_exercice_1
% do something to print the hints of my_exercice_2
\section{Solutions}
% do something to print solution of my_exercice_1
% do something to print solution of my_exercice_2
因为我不想错过问题或解决方案的显示,所以有一个自动显示会很好。
我指望你们!非常感谢,