![如何使用悬挂缩进来撰写此段落?](https://linux22.com/image/475104/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%82%AC%E6%8C%82%E7%BC%A9%E8%BF%9B%E6%9D%A5%E6%92%B0%E5%86%99%E6%AD%A4%E6%AE%B5%E8%90%BD%EF%BC%9F.png)
答案1
您可以将 TeX 原始寄存器\leftskip
和设置\parindent
为适当的值。此设置对所有段落或组中的所有段落有效:
\bgroup
\leftskip=2em \parindent=-\leftskip
paragraph...
paragraph...
paragraph...
\par\egroup
答案2
\documentclass{article}
\usepackage{shortvrb}
\MakeShortVerb{\|}
\begin{document}
\hangindent=4pc\hangafter=1
|\frontmatter| should be the very first command after the start of the
document body (|\begin{document}|). It will stretch page numbering to
Roman numerals and sections will be non-enumerated as if you were
using the starred sectioning commands (for example, |\chapter*{Preface}|)
but the sections will still show up in the table of contents.
\end{document}
如果 的描述只有一个段落\frontmatter
,则使用\hangindent
和\hangafter
。
如果有两个或两个以上的段落,可以使用list
环境或更高级别的开发包enumitem
。