{amsmath} \settasks \begintask \end{task} 生成多个错误

{amsmath} \settasks \begintask \end{task} 生成多个错误

OP 在下面进行了编辑,以显示枚举问题的解决方案(h/t @egreg)。但有几个错误消息是由\end{tasks}/

非常感谢您的帮助!

母语:


\usepackage{amsmath}
\usepackage{cancel}
\usepackage{caption} 
% allows captions in minipage envir
\usepackage{amssymb}
%\usepackage{mathrsfs}
\usepackage{framed} %box para
\usepackage{multicol}
\usepackage{tasks}
\usepackage[margin=0.5in]{geometry}
\everymath{\displaystyle}

\setlength{\parindent}{0pt} % removes paragraph indentation

\pagestyle{head}
\header{Unit 9 Assignment: Lesson 4-7 Part 1 - Quadratic Formula Practice}
       {}
       {02/13/2023} 

\newcommand{\pagetop}{%
  %\makebox[\textwidth]%{Name:\enspace\hrulefill}\par
  \vspace{4mm}
  \fbox{\fbox{\parbox{\dimexpr\textwidth-4\fboxsep-4\fboxrule}{
    \textbf {Use the Quadratic Formula to solve each equation. Write answers in 2 forms: (1) integer or simplified radical (2) decimal approximation.}
    %\par
    %\bigskip

  }}}\par
  \vspace{0.5mm}
}

\begin{document}
\pagetop

\newcommand*{\qf}{$x=\frac{-(b) \pm\sqrt{(b)^2-4(a)(c)}}{2(a)}$}

\settasks{after-item-skip=5em,
          after-skip=2cm,
          label-width=2em,
          item-indent=3em,
          label=(\arabic*),
          column-sep=2em
          }

\begin{tasks}(2)
%Prob #1
\task $-x^2+7x-3=0$
\\\\
Divide by $-1$ to cancel $-1$ on leading coefficient.
\\\\
$x^2-7x+3=0$\\
\\\\
\begin{aligned}
$x&=\frac{-(7)\pm\sqrt{(-7)^2-4(1)(3)}}{2(1)}$
\\\\
$&=\frac{-7\pm\sqrt{7^2-12}}{2}$
\\\\
$&=\frac{-7\pm\sqrt{37}}{2}$
\end{aligned}
%Prob #2
\task $x^2+6x=10$
\\\\
\qf


\end{tasks}
\end{document}```


  [1]: https://i.stack.imgur.com/NiM1c.jpg

答案1

你想要类似的东西

label-format={[\arabic*]}

但您还需要做一些其他的调整。

\documentclass{article}
\usepackage{tasks}

\begin{document}

\begin{tasks}[
  label={[\arabic*]},
  label-width=16pt,
  label-align=right,
  label-offset=6pt,
](2)
\task $-x^2+7x-3=0$
\task $x^2+6x=10$
\task $2x^2=4x+3$
\task $4x^2+81=36x$
\task $4m^4n^3 \cdot 4m^2n^3$
\task $-4m^3n^4 \cdot 2m$
\task $4nm^0 \cdot 4m^4n^2$
\task $-4a^0b^2 \cdot ba^3$
\task $a^4b^2c^3 \cdot 2a^2b^4$
\task $-4zx^4y^4 \cdot -3x^3y^0z^4$
\end{tasks}

\end{document}

在此处输入图片描述

相关内容