![书名小于章节标题](https://linux22.com/image/389891/%E4%B9%A6%E5%90%8D%E5%B0%8F%E4%BA%8E%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98.png)
我最近开始使用 Pandoc 从 MarkDown 源生成 PDF 文件,使用 LaTeX 引擎。
目前,使用书籍类,我发现输出的一个令人分散注意力的属性是主要标题的排版比书名更突出,前者大而粗体,后者较小且重量正常。
遵循“越重要的东西就越大越重”这个简单的原则,我很惊讶地发现这些工具的结果如此。
这种影响是正常的吗?或者对任何人来说,都是可取的吗?我该如何覆盖或纠正它?
为了说明,我处理了一本古典小说的文本,并包含了结果的表示。
注意:我曾尝试使用 KOMA-Script 书籍类,它纠正了这种效果,但代价是页边距变小了很多,而标准类将每页上的文本量限制为更易于管理的数量。我希望以某种方式结合每种布局的最佳功能。
答案1
header-includes
您可以使用pandoc markdown 序言的字段将内容添加到序言中。然后您可以包含titling
包来根据您的喜好设计标题页的样式。
查尔斯·狄更斯的《双城记》全文可从以下网址获取:古腾堡计划。
---
title: A Tale of Two Cities
author: Charles Dickens
documentclass: book
header-includes:
\usepackage{titling}
\pretitle{\begin{center}\Huge\bfseries}
\posttitle{\end{center}\vspace{0.5em}}
---
# The Period
It was the best of times,
it was the worst of times,
it was the age of wisdom,
it was the age of foolishness,
it was the epoch of belief,
it was the epoch of incredulity,
it was the season of Light,
it was the season of Darkness,
it was the spring of hope,
it was the winter of despair,
we had everything before us,
we had nothing before us,
we were all going direct to Heaven,
we were all going direct the other way--
in short, the period was so far like the present period, that some of
its noisiest authorities insisted on its being received, for good or for
evil, in the superlative degree of comparison only.
There were a king with a large jaw and a queen with a plain face, on the
throne of England; there were a king with a large jaw and a queen with
a fair face, on the throne of France. In both countries it was clearer
than crystal to the lords of the State preserves of loaves and fishes,
that things in general were settled for ever.
It was the year of Our Lord one thousand seven hundred and seventy-five.
Spiritual revelations were conceded to England at that favoured period,
as at this. Mrs. Southcott had recently attained her five-and-twentieth
blessed birthday, of whom a prophetic private in the Life Guards had
heralded the sublime appearance by announcing that arrangements were
made for the swallowing up of London and Westminster. Even the Cock-lane
ghost had been laid only a round dozen of years, after rapping out its
messages, as the spirits of this very year last past (supernaturally
deficient in originality) rapped out theirs. Mere messages in the
earthly order of events had lately come to the English Crown and People,
from a congress of British subjects in America: which, strange
to relate, have proved more important to the human race than any
communications yet received through any of the chickens of the Cock-lane
brood.
答案2
如果您只是想使用scrbook
根据页面大小计算的边距,您可以执行以下操作:
---
title: A Tale of Two Cities
author: Charles Dickens
documentclass: scrbook
indent: true
subparagraph: true
classoption:
- fontsize=12pt
- DIV=calc
- headings=normal
---
# The Period
It was the best of times,
it was the worst of times,
it was the age of wisdom,
it was the age of foolishness,
it was the epoch of belief,
it was the epoch of incredulity,
it was the season of Light,
it was the season of Darkness,
it was the spring of hope,
it was the winter of despair,
we had everything before us,
we had nothing before us,
we were all going direct to Heaven,
we were all going direct the other way--
in short, the period was so far like the present period, that some of
its noisiest authorities insisted on its being received, for good or for
evil, in the superlative degree of comparison only.
There were a king with a large jaw and a queen with a plain face, on the
throne of England; there were a king with a large jaw and a queen with
a fair face, on the throne of France. In both countries it was clearer
than crystal to the lords of the State preserves of loaves and fishes,
that things in general were settled for ever.
It was the year of Our Lord one thousand seven hundred and seventy-five.
Spiritual revelations were conceded to England at that favoured period,
as at this. Mrs. Southcott had recently attained her five-and-twentieth
blessed birthday, of whom a prophetic private in the Life Guards had
heralded the sublime appearance by announcing that arrangements were
made for the swallowing up of London and Westminster. Even the Cock-lane
ghost had been laid only a round dozen of years, after rapping out its
messages, as the spirits of this very year last past (supernaturally
deficient in originality) rapped out theirs. Mere messages in the
earthly order of events had lately come to the English Crown and People,
from a congress of British subjects in America: which, strange
to relate, have proved more important to the human race than any
communications yet received through any of the chickens of the Cock-lane
brood.