468. LaTeX技巧190:悬挂缩进的LaTeX实现 |
您所在的位置:网站首页 › 中印边境牺牲的烈士英雄 › 468. LaTeX技巧190:悬挂缩进的LaTeX实现 |
方法一用\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\noindentGulls — 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评议:该环境定义尚有问题,请读者慎用。 地址:http://www.wangchao.net.cn/bbsdetail_54194.html |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |