在Latex中创建带有答案的问题集 [英] Creating problem-sets with answers in Latex
问题描述
我想在Latex中排版数学问题集.我的要求如下:
I want to typeset Mathematical problem-sets in Latex. My requirements are as follows:
当我键入它们时,我希望问题和答案在源代码中彼此相邻,以便可以轻松地解决错误等问题.
When I type them in, I want the questions and the answers to be next to each other in the source-code so that fixing errors, etc. can be done easily.
但是,当文档排版后,我希望答案像在教科书中一样出现在单独的答案"部分中.
However, when the document is typeset, I want the answers to appear in a separate "Answers" section just the way they do in textbooks.
有人知道这样做的方法吗?
Does anyone know of a way to do this?
非常感谢!
推荐答案
您正在寻找延期印刷.有一些可以解决此问题的软件包,例如 exercise
.这正是您想要的.
You are looking for deferred printing. There are packages that can handle this problem, for instance exercise
. This does exactly what you're looking for.
这篇关于在Latex中创建带有答案的问题集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!