方法一 效果图: 演示代码: 方法二 评议:该环境定义尚有问题,请读者慎用。
用\hangafter
和 \hangindent
来实现。\hangafter
后面的数字指行数,是从 n+1 行开始有效\hangindent
后面是尺寸,就是向右移动的距离
这个命令必须放在段的开始,而且有效范围也是当前的段。另起一段后即失效。因此这种方法适用于文章中只有部分段落需要悬挂缩进格式的情况。
举例:\hangafter 1
\hangindent 1.5em
\noindent
...\documentclass{article}
\setlength\textwidth{280.0pt}
\begin{document}
\hangafter 1
\hangindent 1.5em
\noindent
Gulls — the larger species in particular — are resourceful and highly-intelligent birds, demonstrating complex methods of communication and a highly-developed social structure. Certain species (e.g. the Herring Gull) have exhibited tool use behaviour. Many species of gull have learned to co-exist successfully with man and have thrived in human habitats. Others rely on kleptoparasitism to get their food.
\end{document}
修改已有的verse环境定义。这种方法适用于文章中有大量连续段落需要悬挂缩进的情况。\makeatletter
\renewenvironment{verse}
{\let\\\@centercr
\list{}{\itemsep \z@
\itemindent -1.5em%
\listparindent\itemindent
\leftmargin -\itemindent
\rightmargin 0em}
\item\relax}
{\endlist}
\makeatother
发表评论 取消回复