|
如果你产生了一个带有solution的问题集,但想从 tex 文件中删除solution(例如,给学生使用),可以运行以下之一
- sed '/\\begin{solution}/,/\\end{solution}/d' file.tex > file-nosoln.tex
复制代码 或
- perl -ne 'print unless /^\\begin\{solution\}/ .. /^\\end\{solution\}/' file.tex > file-nosoln.tex
复制代码
若 class 使用exam,是否打印solution由\printanswers 和\noprintanswers 两个命令控制 |
|