我使用包inline
的选项enumitem
来创建内联列表。编号列表非常完美,但是描述会在标签和文本之间产生大量空白。
我该如何解决这个问题?
\documentclass[12pt,a4paper]{article}
\usepackage{blindtext}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[%
inline,
shortlabels
]{enumitem}
\begin{document}
Numerated:\par
%
\begin{enumerate*}
\item First
\item Second
\end{enumerate*}\par
%
Description\par
\begin{description*}
\item [First:] Text
\item [Second:] Text
\end{description*}
\end{document}
答案1
使用unboxed
模式:
\documentclass[12pt,a4paper]{article}
\usepackage{blindtext}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[showframe]{geometry}
\usepackage[%
inline,
shortlabels
]{enumitem}
\begin{document}
Numerated:\par
%
\begin{enumerate*}
\item First
\item Second
\end{enumerate*}\par
%
Description\par
\begin{description*}[itemjoin ={,\ }, mode=unboxed]
\item [First] Text
\item [Second] Text
\item [Third] Text
\end{description*}
\end{document}