如何在Latex文档中修改节的结尾和下一节的标题之间的距离?如何更改Latex中各节之间的空白量?
4
A
回答
8
您可以使用titlesec
包配置节标题的样式,包括间距。有一个简洁的缩小空间选项,或者您可以使用更高级的选项来指定特定的值(请参阅链接页面上有关血腥详细信息的文档)。
6
titlesec的替代方法是重新定义section命令,如下面的代码片段所示。请注意,beforeskip和afterskip是您感兴趣的变量。代码本身只是前几行。接下来是一段冗长的评论,让我想起当我从一个文档切割并粘贴整个文档到另一个文档时的定义。顺便说一下,该代码或多或少来自不可缺少的书, LaTeX Companion,第二版。
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\[email protected]}%
{-2.5ex \@plus -1ex \@minus -.2ex}%
{1.3ex \@plus.2ex}%
{\centering\bfseries}}
% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
% optional * [ALTHEADING]{HEADING}
% Generic command to start a section.
% NAME : e.g., 'subsection'
% LEVEL : a number, denoting depth of section -- e.g., chapter=1,
% section = 2, etc. A section number will be printed if
% and only if LEVEL gt or eq the value of the secnumdepth
% counter.
% INDENT : Indentation of heading from left margin
% BEFORESKIP : Absolute value = skip to leave above the heading.
% If negative, then paragraph indent of text following
% heading is suppressed.
% AFTERSKIP : if positive, then skip to leave below heading,
% else - skip to leave to right of run-in heading.
% STYLE : commands to set style
% If '*' missing, then increments the counter. If it is present, then
% there should be no [ALTHEADING] argument. A sectioning command
% is normally defined to \@startsection + its first six arguments.
\makeatother
相关问题
- 1. 如何更改PurePDF中各行之间的空格?
- 2. 如何修改LaTeX中章节标题之前的空间大小?
- 3. ioslides中的标题和情节之间的空白空间
- 4. 保留xsl:sort'd节点之间的空白
- 5. 如何调整分组表格视图中各节之间的空间?
- 6. 如何增加LaTeX中两个表格之间的空间?
- 7. UITableView分组:如何更改两节之间的偏移量?
- 8. 如何删除div之间的空白?
- 9. 如何在NetBeans中更改JFrame和JLabel之间的空间?
- 10. 如何删除围绕UITableViews中各节的“span”空间?
- 11. 如何更改空白页的图标?
- 12. 如何删除表单元素之间的空白空间
- 13. 如何减少两个div元素之间的空白空间
- 14. 如何更改DOM中每个节点上的命名空间?
- 15. Survminer的生存空间 - 空白情节
- 16. 在导入之前/期间/之后更改DOM节点的名称空间
- 17. Forms.TreeView中节点之间的空间
- 18. Treeview中节点之间的空间wpf
- 19. ImageView之后的空白空间
- 20. 如何删除UICollectionView中的节之间的空间swift
- 21. 如何删除Highcharts极坐标图中的酒吧之间的空白空间?
- 22. 将空白空间添加为我的变量之一
- 23. 如何修复一个情节和图例之间的空白,以便新文字不会改变间距?
- 24. HAML中的标签之间的空白空间
- 25. 如何摆脱UITableView之前的空白空间?
- 26. 如何居中div并更改表单中元素之间的空间?
- 27. 如何在节标题和段落之间添加多余的空白
- 28. 如何更改NumberFormatter :: parseCurrency()接受空白和非破坏空间的行为?
- 29. 在html中插入两个单词之间的空白空间
- 30. 如何删除XML中标签之间的空白
'titlesec'看起来像一个梦幻般的包。 – 2009-08-24 21:26:32