
수업 을 이용하고 있습니다 exam
.
\documentclass{12pt,a3paper,landscape}{exam}
제 논문을 두 개의 열로 나누고 싶습니다. 하나의 열은 질문에 대한 것이어야 하며 해당 질문 건너편에는 질문 번호와 문제를 해결할 수 있는 공간이 제공됩니다.
질문을 읽었습니다.빈 열을 얻으려면 어떻게 해야 합니까?, 그러나 질문을 어떻게 추가하는지 잘 모르겠습니다. 질문을 모두 ? 뒤에 입력해야 합니까 &
?
이것이 가능한가?
답변1
귀하의 필요에 맞게 약간의 조정이 필요할 수 있지만 다음 내용이 도움이 될 수 있다고 생각합니다. 저는 ("질문과 답변"을 위해)라는 "두 부분으로 구성된" 환경을 정의했으며 , 각 질문과 답변에 대해 qanda
라는 명령으로 분할했습니다 . after 를 \nextpart
사용하여 각 답변에 할당된 공간을 미세 조정할 수 있습니다 .\mbox{}\vspace{...}
\nextpart
\documentclass[12pt,landscape]{article}
\usepackage[showframe,a4paper]{geometry} % change to a3paper if needed
\usepackage{etoolbox}
\usepackage{enumitem}
\newtoggle{morethanoneparagraph}
\togglefalse{morethanoneparagraph}
\newcommand{\mycolumnwidth}{0.45\textwidth}
\newenvironment{qanda}{% Q&A
\newcommand\nextpart{%
\end{enumerate}
\end{minipage}
\begin{minipage}[t]{\mycolumnwidth}
\iftoggle{morethanoneparagraph}{%
\begin{enumerate}[label=\roman*.,resume*=q]
\item
}{%
\global\toggletrue{morethanoneparagraph}
\begin{enumerate}[label=\roman*.,series=q]
\item
}
}
\begin{minipage}[t]{\mycolumnwidth}
\iftoggle{morethanoneparagraph}{
\begin{enumerate}[label=\arabic*.,resume*=a]
\item
}{
\begin{enumerate}[label=\arabic*.,series=a]
\item
}
}{
\end{enumerate}
\end{minipage}
\vspace{\baselineskip}
}
\setlength{\parindent}{0pt}
\begin{document}
\begin{qanda}
Prove or disprove $P=NP$
\nextpart \mbox{}\vspace{5cm}
\end{qanda}
\begin{qanda}
Solve
\[
x^2-x+1=0\,.
\]
\nextpart
\mbox{}\vspace{6cm}
\end{qanda}
\begin{qanda}
Disprove Fermat's Last Theorem.
\nextpart
``Mrs Wiles\ldots please get your husband on the phone\ldots''
\end{qanda}
\end{document}