One should use \textup{)}
, so the italic correction would be automatically added; unfortunately, this crashes because of the nature of \textup
that doesn't really like to be used in that place. However, there's an easy fix.
Note that \upshape
doesn't take an argument.
\documentclass{article}
\usepackage{tasks}
\usepackage{etoolbox}
\robustify{\textup}
\begin{document}
\begin{tasks}[label-format=\itshape,counter-format=tsk[a]\upshape{)}](4)
\task Ex. 1
\task Ex. 2
\task Ex. 3
\task Ex. 4
\end{tasks}
\begin{tasks}[label-format=\itshape,counter-format=tsk[a]\/\upshape)](4)
\task Ex. 1
\task Ex. 2
\task Ex. 3
\task Ex. 4
\end{tasks}
\begin{tasks}[label-format=\itshape,counter-format=tsk[a]\textup{)}](4)
\task Ex. 1
\task Ex. 2
\task Ex. 3
\task Ex. 4
\end{tasks}
\end{document}
You can see that the second and third examples print the same. In the second example, the italic correction \/
is explicitly added.
\begin{tasks}[label-format=\itshape,counter-format=tsk[r]\upshape{)}](4)
but now I can't remember how to change the task numbers (i, ii, iii and iv) as before (a, b, c and d):(
. Edit: NVM, changedtsk[r]
totsk[a]
:)
. Do you want to post an answer?