答案1
答案2
如果您想让整个任务变成红色,您需要一小块内部 expl3 代码,因为它当前会将所有内容重置为黑色:
\documentclass{article}
\usepackage{tasks}
\settasks{style=enumerate}
\ExplSyntaxOn\makeatletter
%patch needed to get a around a problem in the l3-drivers
\AtBeginDocument{
\cs_set_protected_nopar:Npn \color_ensure_current:
{\set@color}
}
\ExplSyntaxOff\makeatother
\begin{document}
\begingroup
\color{red}
\begin{tasks}(3)
\task $3x^3 - 21x$
\task
$5x^6 + 15x^4$
\task $4x^3 + 10x^2 - 2x$
\end{tasks}
\endgroup
\end{document}
答案3
设置item-format
和这label-format
。
\documentclass{article}
\usepackage{tasks,color}
\settasks{
style = enumerate ,
label-format = \bfseries
}
\begin{document}
% local:
In exercises 1--8, factor the common factor in the polynomials.
\begin{tasks}[label-format=\color{red}\bfseries,item-format=\color{red}](3)
\task $3x^3 - 21x$
\task $5x^6 + 15x^4$
\task $4x^3 + 10x^2 - 2x$
\end{tasks}
% for all lists:
\settasks{
label-format = \color{red}\bfseries ,
item-format = \color{red}
}
In exercises 1--8, factor the common factor in the polynomials.
\begin{tasks}(3)
\task $3x^3 - 21x$
\task $5x^6 + 15x^4$
\task $4x^3 + 10x^2 - 2x$
\end{tasks}
\end{document}