如何在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