我目前正在使用考試班写下家庭作业考试的答案,但当我的答案太大而无法容纳一页时,我遇到了问题。我的论文中要么有很大的空白,要么答案溢出页面而无法进入下一页。所以我需要找到一种方法将答案\fbox
分成多个框。
我不介意手动调整每个解决方案框的内容,但如果可以自动完成那就更好了。如果包含相同解决方案的框可以“开放式”,以显示它们属于同一类,我也非常喜欢。
为了完整起见,这里有一些额外的信息:
我尝试手动拆分解决方案,只是添加类似的东西,但
\end{solution}\newpage\begin{solution}
无济于事。我也尝试阅读
exam.cls
(我有版本 2.4,2011/05/22)以查看我是否可以自己破解它,并且看到一条评论(第 70 行)分页符实际上应该在解决方案环境中可用,但它们似乎对我来说不起作用。这个问题报告了同样的问题,但由于没有解决方案,而且我的评论可能不会引起任何关注,所以我决定重新发布重新表述的问题,包括以下 MWE:
\documentclass[a4paper,12pt,answers]{exam}
\usepackage{amsmath,amssymb,amsthm}
\begin{document}
\begin{questions}
\question Let $A \in \mathbb{R}^{n \times n}$, possibly singular. Show there exists $\epsilon \neq 0$ such that $A+\epsilon I$ is n.
\begin{EnvFullwidth}
\begin{solution} \01 REALLY LONG SOLUTION \02 REALLY LONG SOLUTION \03 REALLY LONG SOLUTION \04 REALLY LONG SOLUTION \05 REALLY LONG SOLUTION \06 REALLY LONG SOLUTION \07 REALLY LONG SOLUTION \08 REALLY LONG SOLUTION \09 REALLY LONG SOLUTION \10 REALLY LONG SOLUTION \11 REALLY LONG SOLUTION \12 REALLY LONG SOLUTION \13 REALLY LONG SOLUTION \14 REALLY LONG SOLUTION \15 REALLY LONG SOLUTION \16 REALLY LONG SOLUTION \17 REALLY LONG SOLUTION \18 REALLY LONG SOLUTION \19 REALLY LONG SOLUTION \20 REALLY LONG SOLUTION \21 REALLY LONG SOLUTION \22 REALLY LONG SOLUTION \23 REALLY LONG SOLUTION \24 REALLY LONG SOLUTION \25 REALLY LONG SOLUTION \26 REALLY LONG SOLUTION \27 REALLY LONG SOLUTION \28 REALLY LONG SOLUTION \29 REALLY LONG SOLUTION \30 REALLY LONG SOLUTION \31 REALLY LONG SOLUTION \32 REALLY LONG SOLUTION \33 REALLY LONG SOLUTION \34 REALLY LONG SOLUTION \35 REALLY LONG SOLUTION \36 REALLY LONG SOLUTION \37 REALLY LONG SOLUTION \38 REALLY LONG SOLUTION \39 REALLY LONG SOLUTION \40 REALLY LONG SOLUTION \41 REALLY LONG SOLUTION \42 REALLY LONG SOLUTION \43 REALLY LONG SOLUTION \44 REALLY LONG SOLUTION \45 REALLY LONG SOLUTION \46 REALLY LONG SOLUTION \47 REALLY LONG SOLUTION \48 REALLY LONG SOLUTION \49 REALLY LONG SOLUTION \50 REALLY LONG SOLUTION \51 REALLY LONG SOLUTION \52 REALLY LONG SOLUTION \53 REALLY LONG SOLUTION \54 REALLY LONG SOLUTION \55 REALLY LONG SOLUTION \56 REALLY LONG SOLUTION \57 REALLY LONG SOLUTION \58 REALLY LONG SOLUTION \59 REALLY LONG SOLUTION \60 REALLY LONG SOLUTION \\end{solution}
\end{EnvFullwidth}
\end{questions}
\end{document}
非常感谢您的关注!
答案1
用它没有这
\begin{EnvFullwidth}
...
\end{EnvFullwidth}
或者定义一个\SetTotalwidth
执行相同操作但允许分页的命令
\documentclass[a4paper,12pt,answers]{exam}
\usepackage{amsmath,amssymb,amsthm,lipsum}
\makeatletter
\def\SetTotalwidth{\advance\linewidth by \@totalleftmargin
\@totalleftmargin=0pt}
\makeatother
\begin{document}
\begin{questions}
\question Let $A \in \mathbb{R}^{n \times n}$, possibly singular. Show there exists $\epsilon \neq 0$ such that $A+\epsilon I$ is n.
\SetTotalwidth
\begin{solution}\noindent
\lipsum
\end{solution}
\end{questions}
\begin{questions}
\question Let $A \in \mathbb{R}^{n \times n}$, possibly singular. Show there exists $\epsilon \neq 0$ such that $A+\epsilon I$ is n.
\begin{solution}
\lipsum[5]
\end{solution}
\end{questions}
\end{document}