在下面的 mwe 中,我希望问题编号计数器从 #44 而不是 #1 开始,因为该文档是更大问题集的第 2 部分:
我尝试插入\task\SetTaskNumber{44}
但产生了undefined control sequence error
。
作为一个 tex 新手,我不太明白枚举是如何以及在何处创建的。猜测执行的代码行是\begin{tasks} [style=enumerate](2)
。
如果可能的话,请找出指定起始数字“1”的代码行以及如何将该起始数字更改为“44”。
非常感谢您花时间阅读并回复此信!
母语:
\documentclass[12pt]{exam}
\usepackage[a4paper,margin=0.5in,include head]{geometry}
\printanswers
% un-comment to print solutions.
\renewcommand{\solutiontitle}{}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{framed}
\usepackage{bm}
\usepackage{multicol}
\usepackage[nice]{nicefrac}
\usepackage{tasks}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\tikzset{arr/.style = {blue,-{Triangle[angle=60:1pt 3]}, thick,
shorten <=2mm, shorten >=2mm}
}
\newcommand\arr{\tikz[baseline=-0.65ex] % <--- new
\draw[blue,-{Triangle[angle=60:1pt 3]}, very thick,
shorten <=2mm, shorten >=2mm
] (0,0) -- ++ (1,0); }
\pagestyle{head}
\header{\textbf{ Algebra II: Q4 Final Exam: R E V I E W (Units 12-15)}}
{}
{}
\newcommand{\pagetop}{%
}
\newlength{\lwidth}
\settowidth{\lwidth}{(99)\enspace}
\settasks{after-item-skip=1em,
after-skip=2cm,
label-width=\lwidth,
item-indent=0pt,
label=(\arabic*), %
label-offset = -\lwidth,
item-format = \hspace{\lwidth},
column-sep=2em,
}
\makeatletter
\renewcommand{\fullwidth}[1]{%
\vbox{%
\leftskip=-\lwidth \rightskip=0pt
\advance\linewidth\@totalleftmargin%
\@totalleftmargin=0pt%
#1}%
\nobreak
}
\begin{document}
%definition for bigskip = 1 line to replace all \bigskip
\def\bigskip{\vskip\bigskipamount}
\begin{tasks}
[style=enumerate](2)
% undefined control sequence error: ***\task\SetTaskNumber{44}***
\task![]\fullwidth{\textbf
{Simplify each radical expression.}}
%%% Prob #1
\task
$5\sqrt48$
\begin{solutionorbox}[\SolutionSpace]
$5\sqrt{48}\arr 5(\sqrt{16})(\sqrt3) \arr (5)(4)(\sqrt3)$\bigskip
\colorbox{yellow}{$20\sqrt3$}
\end{solutionorbox}
%%%%%%%%Prob #2
\task
$\sqrt{16x^{14}}$
\begin{solutionorbox}[\SolutionSpace]
$(\sqrt{16})(\sqrt{x^{14}}) \arr 4(x^{14\div 2})$\bigskip
\colorbox{yellow}{$4x^7$}
\end{solutionorbox}
\end{tasks}
\end{document}```