当我使用枚举制作自己的列表标签时遇到一个问题,这是代码。
\documentclass{article}
\usepackage{enumitem}
\usepackage{enumerate}
\begin{document}
Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random
Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here. Some random text goes here.
\newlist{RQlist}{enumerate}{1}
\setlist[RQlist, 1]
{label=\textbf{RQ \arabic{RQlisti}.},
leftmargin=\parindent,
rightmargin=0pt
}
\begin{RQlist}
\item First item
\item Second item
\item This is the third item
\item This is it
\end{RQlist}
\end{document}
输出
所以我面临的问题是标签中的文本覆盖了左边距。我猜是因为枚举环境使用数字进行对齐,而不是标签中的实际文本。我知道可以为“leftmargin”使用一个距离,但如果我要更改标签的文本,这也意味着我必须为左边距找到另一个距离,这取决于文本的大小。有没有自动解决这个问题的方法?