在 Latex 中创建带有答案的问题集 [英] Creating problem-sets with answers in Latex

查看:16
本文介绍了在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆