\newpage 命令不会在 mcexam 中开始新页面

\newpage 命令不会在 mcexam 中开始新页面

该命令\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}

答案1

您正在插入一个minipage其唯一功能是防止分页。

注释掉此行

%\renewenvironment{setmcquestion}{\begin{minipage}[t]{\linewidth-\labelwidth}}{\end{minipage}\par}  

在此处输入图片描述

相关内容