以下测试代码
\documentclass[8pt]{article}
\usepackage{extsizes}
\usepackage{setspace}
\setlength{\parindent}{0pt}
\setstretch{0.75}
\begin{document}
\begin{itemize}
\item[] 00000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 0000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 00000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 0000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\end{itemize}
\end{document}
...产生以下渲染输出:
注意:上图右侧的灰色条表示“页面右边缘以外的空间”。(相比之下,页面的左边边缘远远超出了该图片的左边缘。)
在上面的列表中,每个项目由三个 0 组成,任何两个相邻的 0 之间由两个空格隔开。
有人可以解释一下为什么前四项中,第一次和第二次零之间没有换行符吗?
有没有一般的确保前三项的换行方式与上面最后三项的换行方式相同?(这里的“一般”是指不是需要在 LaTeX 的任何地方插入明确的“换行指令”(例如\\
或\linebreak
),以自行产生这样的换行。)
答案1
你告诉 TeX 对齐线条,但它没有成功的机会。使用\raggedright
它可以在任何空白处断开。
除非你使用较小的字体,否则线条仍然会过满,但是
\documentclass[8pt]{article}
\usepackage{extsizes}
\usepackage{setspace}
\setlength{\parindent}{0pt}
\setstretch{0.75}
\begin{document}
\begin{itemize}\raggedright
\item[] 00000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 0000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 00000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 0000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\item[] 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000
\end{itemize}
\end{document}