我有三个使用包列出的增加函数的示例。命令tasks
中的值为。但我希望的左边缘从左边距缩进。我将设置为等于的宽度,并且我有。我认为应该将其设置为等于的总和、的值和。对吗?(我以前只是为了给出一些缩进。这不是我想要的缩进。)\settasks{}
item-indent=2cm
iii.)
2em
label-width
iii.)
label-offset=1em
item-indent
2em
label-width
label-offset=1em
item-indent=3.5cm
\documentclass[10pt]{amsart}
\usepackage{amsmath}
\usepackage{array,booktabs}
\newlength\labelwd
\settowidth\labelwd{ iii.)}
\usepackage{tasks}
\settasks{counter-format =tsk[r].), label-offset=1em, label-align=right, label-width
=\labelwd, item-indent=3.5cm, before-skip =\smallskipamount, after-item-skip=0pt}
\begin{document}
The following functions are sums of two increasing functions on the interval $[0, \, \infty)$ and so are increasing functions on $[0, \, \infty)$.
\begin{tasks}(1)
\task $x^{2} + x$
\task $x^{3} + 2x^{2} + 3x - 7$
\task $x^{2} + \sqrt{x}$
\end{tasks}
\end{document}
答案1
像这样?
\documentclass[10pt]{amsart}
\usepackage[showframe]{geometry}
\usepackage{amsmath}
\usepackage{array,booktabs}
\setlength\parindent{1em}
\newlength\labelwd
\settowidth\labelwd{iii.)}
\usepackage{tasks}
\settasks{counter-format =tsk[r].), label-offset=1em, label-align=right, label-width
=\labelwd, item-indent=\dimexpr\labelwd+2em +\parindent\relax, before-skip =\smallskipamount, after-item-skip=0pt}
\begin{document}
The following functions are sums of two increasing functions on the interval $[0, \, \infty)$ and so are increasing functions on $[0, \, \infty)$.
\begin{tasks}(1)
\task $x^{2} + x$
\task $x^{3} + 2x^{2} + 3x - 7$
\task $x^{2} + \sqrt{x}$
\end{tasks}
\end{document}