该命令\newpage
不会在 中开始新页面mcexam
。我需要\begin{mcquestioninstruction}
从下一页开始,因为它与后面的问题无关。
更新: \newpage
现已插入后行\begin{mcquestioninstruction}
。这确实会按照需要将说明放在下一页上。
\documentclass[a4paper]{article}
\usepackage[output=exam
,numberofversions=2
,version=1
,seed=1
,randomizequestions=false
,randomizeanswers=true
,writeRfile=true
]{mcexam}
\usepackage{tikz,framed}
\usepackage{fancyhdr,lastpage}
\usepackage{tcolorbox}
\tcbuselibrary{skins}
\usepackage{chemformula}
\usepackage{chemmacros}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{array}
\graphicspath{ {./images/} }
\hyphenpenalty=2000
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{1pt}
\lfoot{\mctheversion}
\rfoot{Page \thepage\ of \pageref{LastPage}}
\usepackage{calc}
\renewenvironment{setmcquestion}{\begin{minipage}[t]{\linewidth-\labelwidth}}{\end{minipage}\par}
\begin{document}
\mcifoutput{concept,exam}
\section*{}
\begin{mcquestions}
\question Question 1
\begin{mcanswerslist}[fixlast]
\answer [correct] answer 1
\answer answer 2
\answer answer 3
\answer answer 4
\end{mcanswerslist}
\begin{mcquestioninstruction}
\newpage
My instructions that must be at the top of the next page:
\end{mcquestioninstruction}
\question Question 2
\begin{mcanswerslist}%[fixlast]
\answer answer 1
\answer answer 2
\answer answer 3
\answer answer 4
\end{mcanswerslist}
\end{mcquestions}
\end{document}