
我正在使用帶有項目符號的內聯枚舉項,但我希望第一個項目之前沒有項目符號。閱讀手冊後,我嘗試了以下操作,但它仍然在第一項之前留下了不需要的空格。我試圖透過將 labelsep 設為 0 來消除這個問題,但這沒有效果。有什麼好的方法可以做到這一點嗎?
最小(非)工作範例:
\documentclass[]{article}
\usepackage[inline]{enumitem}
\begin{document}
This is a short paragraph
\begin{enumerate*}[label={}, itemjoin={~\textbullet}]
\item First item\item Second item
\item Third item
\end{enumerate*}
This is another short paragraph
\end{document}
答案1
關鍵是設置afterlabel={}
,所以空標籤後面不添加任何內容:
\documentclass[]{article}
\usepackage[inline]{enumitem}
\usepackage{showframe} % just for the example
\setlength{\parindent}{0pt} % just for the example
\begin{document}
This is a short paragraph
\begin{enumerate*}[
label={},
itemjoin={~\textbullet\ },
afterlabel={},
]
\item First item
\item Second item
\item Third item
\end{enumerate*}
This is another short paragraph
\end{document}