我想设置 itemize 中项目和子项目的文本字体和项目符号样式。不确定语法是否正确。
\renewenvironment{itemize}{
\begin{list}{}{
\setlength{\leftmargin}{1.0em}
\setlength\itemsep{0.5em}
\sffamily
\mdseries
\item
\subitem
}
}{
\end{list}
}
答案1
这是一个简单的解决方案enumitem
:
\documentclass{article}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=1em, itemsep=0.5em, before=\sffamily\selectfont}
\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.
\begin{itemize}
\item A description of an item.
\item A description of some other item.
\end{itemize}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.. Some more text. Some more text.
\end{document}