我想画一条线来分隔列examdesign
。即使问题分为两列,制作文档twocolumn
也不起作用。
是否可以绘制 tikz 图片作为列分隔符?(Tikzpic 允许我画一些有趣的东西)
以下是一个examdesign
示例(取自邮政):
\documentclass[twocolumns]{examdesign}
\usepackage[demo]{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{lipsum}
\NoRearrange
\NoKey
\ContinuousNumbering
\class{Class Name}
\examname{Exam Name}
\def\namedata{Name: \hrulefill \\[4pt] Block: \hrulefill \, Date: \hrulefill}
\parindent 0ex
\begin{document}
\begin{multiplechoice}[title={Multiple-Choice}, examcolumns=2]
Directions
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
\lipsum[4]
I. Statement I \\[0.5em]
II. Statement2 \\[0.5em]
III. Statement3 \\
\choice{I only}
\choice{II only}
\choice{III only}
\choice[!]{I, II, and III}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
\lipsum[4]
I. Statement I \\[0.5em]
II. Statement2 \\[0.5em]
III. Statement3 \\
\choice{I only}
\choice{II only}
\choice{III only}
\choice[!]{I, II, and III}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\end{multiplechoice}
\end{document}
答案1
将其置于tikzpicture
环境之外multiple choice
会产生一个新页面。也可以使用everypage
包。
找到列的底部(而不是文本区域)很困难,但并非不可能。请记住运行两次。
\documentclass[twocolumns]{examdesign}
\usepackage[demo]{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{lipsum}
\usepackage{tikzpagenodes}
\NoRearrange
\NoKey
\ContinuousNumbering
\class{Class Name}
\examname{Exam Name}
\def\namedata{Name: \hrulefill \\[4pt] Block: \hrulefill \, Date: \hrulefill}
\parindent 0ex
\begin{document}
\begin{multiplechoice}[title={Multiple-Choice}, examcolumns=2]
Directions
\begin{tikzpicture}[remember picture,overlay]
\coordinate (here) at (0,-\baselineskip);
\draw[red] (current page text area.south) -- (current page text area.north |- here);
\end{tikzpicture}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
\lipsum[4]
I. Statement I \\[0.5em]
II. Statement2 \\[0.5em]
III. Statement3 \\
\choice{I only}
\choice{II only}
\choice{III only}
\choice[!]{I, II, and III}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\begin{question}
\lipsum[4]
I. Statement I \\[0.5em]
II. Statement2 \\[0.5em]
III. Statement3 \\
\choice{I only}
\choice{II only}
\choice{III only}
\choice[!]{I, II, and III}
\end{question}
\begin{question}
Question
\choice{1}
\choice{2}
\choice[!]{3}
\choice{4}
\end{question}
\end{multiplechoice}
\end{document}