|
|
TeX中实现悬挂缩进 |
|
|
作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站 |
方法一
用\hangafter 和 \hangindent来实现。 \hangafter 后面的数字指行数,是从 n+1 行开始有效 \hangindent 后面是尺寸,就是向右移动的距离
这个命令必须放在段的开始,而且有效范围也是当前的段。另起一段后即失效。因此这种方法适用于文章中只有部分段落需要悬挂缩进格式的情况。
举例: \hangafter 1 \hangindent 1.5em \noindent ...
方法二
修改已有的verse环境定义。这种方法适用于文章中有大量连续段落需要悬挂缩进的情况。
\makeatletter \renewenvironment{verse} {\let\\\@centercr \list{}{\itemsep \z@ \itemindent -1.5em% \listparindent\itemindent \leftmargin -\itemindent \rightmargin 0em} \item\relax} {\endlist} \makeatother
|
|
相关文章:相关软件: |
|