考试类别:amsmath & multicol 环境:意外 \par 警告

考试类别:amsmath & multicol 环境:意外 \par 警告

在考试类别中,我使用:

  • 数学
  • 多色
  • 枚举项
  • 解决方案盒

mwe 中的代码按预期进行编译,但出现如下所示的错误:

在此处输入图片描述

我被难住了,因为我不知道哪一行代码包含由 引起的错误 \par。这个错误似乎无害。但我希望没有日志错误。

非常感谢您的帮助!

姆韦

\documentclass[12pt]{exam}
\printanswers
% un-comment to print solutions.
\renewcommand{\solutiontitle}{}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{framed}
\usepackage{bm}
\usepackage{multicol}
\usepackage{tasks}
\usepackage[a4paper,margin=0.5in,include head]{geometry}
\usepackage{xcolor}
\usepackage{soul}
\pagestyle{head}
\header{Algebra II: Unit 13 A\&B Fractional Exponents}
       {}
       {Due 05/02/23} 

\newcommand{\pagetop}{%
\noindent 
  
  \bigskip
  \vspace{0.5mm}
}

\settasks{after-item-skip=1em,
          after-skip=2cm,
          label-width=1.5em, %<---------
          item-indent=2em,   %<---------
          label=(\arabic*),
          column-sep=1em     %<----------
          }
\begin{document}
%definition for bigskip = 1 line to replace all \bigskip
\def\bigskip{\vskip\bigskipamount}

\textbf{Change to fractional Exponents}
\begin{tasks}
[style=enumerate](3)

% Prob #1
\task 
$\sqrt[6]{a}$
\bigskip
\begin{solutionorbox}[3cm]
\colorbox{yellow}{$a^{1/6}$}
\end{solutionorbox}
\vspace{0.25cm}

%Prob #2
\task 
$\sqrt[4]{5}$
\bigskip
\begin{solutionorbox}[3cm]
\colorbox{yellow}{$5^{1/4}$}
\end{solutionorbox}
\vspace{0.25cm}

%Prob #3
\task 
$\sqrt[3]{x^2}$
\bigskip
\begin{solutionorbox}[3cm]
\colorbox{yellow}{$x^{2/3}$}
\end{solutionorbox}
\vspace{0.25cm}


\end{tasks}
\end{document}

答案1

\par是一个空白行,并且您的示例显示了许多空白行,删除它们会消除警告。

\documentclass[12pt]{exam}
\printanswers
% un-comment to print solutions.
\renewcommand{\solutiontitle}{}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{framed}
\usepackage{bm}
\usepackage{multicol}
\usepackage{tasks}
\usepackage[a4paper,margin=0.5in,include head]{geometry}
\usepackage{xcolor}
\usepackage{soul}
\pagestyle{head}
\header{Algebra II: Unit 13 A\&B Fractional Exponents}
       {}
       {Due 05/02/23} 

\newcommand{\pagetop}{%
\noindent 
  
  \bigskip
  \vspace{0.5mm}
}

\settasks{after-item-skip=1em,
          after-skip=2cm,
          label-width=1.5em, %<---------
          item-indent=2em,   %<---------
          label=(\arabic*),
          column-sep=1em     %<----------
          }
\begin{document}
%definition for bigskip = 1 line to replace all \bigskip
\def\bigskip{\vskip\bigskipamount}

\textbf{Change to fractional Exponents}
\begin{tasks}
[style=enumerate](3)
%
% Prob #1
\task 
$\sqrt[6]{a}$
\bigskip
\begin{solutionorbox}[3cm]
\colorbox{yellow}{$a^{1/6}$}
\end{solutionorbox}
\vspace{0.25cm}
%
%Prob #2
\task 
$\sqrt[4]{5}$
\bigskip
\begin{solutionorbox}[3cm]
\colorbox{yellow}{$5^{1/4}$}
\end{solutionorbox}
\vspace{0.25cm}
%
%Prob #3
\task 
$\sqrt[3]{x^2}$
\bigskip
\begin{solutionorbox}[3cm]
\colorbox{yellow}{$x^{2/3}$}
\end{solutionorbox}
\vspace{0.25cm}


\end{tasks}
\end{document}

相关内容