![如何避免 itemize 中的框未满?](https://linux22.com/image/329892/%E5%A6%82%E4%BD%95%E9%81%BF%E5%85%8D%20itemize%20%E4%B8%AD%E7%9A%84%E6%A1%86%E6%9C%AA%E6%BB%A1%EF%BC%9F.png)
我正在使用如下示例中所示的 itemize:
\begin{itemize}
\item \textbf{The First}\\
Some text here over fifty lines.... bla blah
\item \textbf{The Second}\\
Other text here over multiple lines... bla blablaaah
\item \textbf{...}\\
\end{itemize}
但是由于\\
我收到一些盒子未满的消息。我也尝试使用\newline
或\linebreak
安装。
如何避免这些“邮箱过满”信息?
答案1
避免\\
在表格之外使用,并且不要在段落末尾使用它。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{enumitem}
\begin{document}
\begin{description}[style=nextline,format=--- \textbf]
\item[The first]
Some text here over fifth lines\ldots{} bla blah
\item[The second]
Other text here over multiple lines\ldots{} bla blablaaah
\end{description}
\end{document}
答案2
像这样 :
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
\usepackage{enumitem}
\begin{document}
\begin{itemize}
\item \textbf{The first}
\begin{itemize}[label=, leftmargin=0mm,]
\item Some text here over fifth lines\ldots{} bla blah
\end{itemize}
\item \textbf{The second}
\begin{itemize}[label=, leftmargin=0mm]
\item Other text here over multiple lines\ldots{} bla blablaaah
\end{itemize}
\item \ldots
\end{itemize}
\end{document}