因此我使用以下用户定义列表:
\newenvironment{topiclist}{%
\normalsize
\begin{list}{}{%
\setlength{\labelwidth}{1.1in}
\setlength{\labelsep}{.2in}
\setlength{\leftmargin}{1.5in}
\setlength{\itemsep}{\bigskipamount}}}
{\end{list}}
现在,当我在 topiclist 中使用 itemize 时,它会继承这些参数。我该如何防止这种情况发生?
答案1
% Inspired by https://overleaf.com/learn/latex/Lists
\documentclass{article}
\usepackage{enumitem}
\newcommand{\myRandomtext}{This is a test text. This is a test text. This is a test text. This is a test text.}
\begin{document}
\begin{description}[
labelwidth = 20mm,
labelsep = 10mm,
leftmargin = 30mm,
itemsep = 5mm,
]
\item[Label] \myRandomtext
\begin{itemize}
\item \myRandomtext
\begin{itemize}
\item \myRandomtext
\end{itemize}
\item \myRandomtext
\end{itemize}
\item[Label] \myRandomtext
\end{description}
\end{document}
(摘自手册。)
可能相关:
(摘自手册。)