gpt4 book ai didi

markdown - 我如何让 pandoc 生成书籍部分?

转载 作者:行者123 更新时间:2023-12-04 02:34:27 26 4
gpt4 key购买 nike

我正在使用 markdown 编写一本带有 pandoc 的书。 Pandoc 可以使用 ### 等生成标题,但我还想要书籍部分(相当于 LaTeX 中的 \part)。我尝试使用 #-(Leanpub 等网站使用的标记),但它不起作用。那么,如何生成图书部分?

最佳答案

预期的方法是对部分使用 # 标题并使用选项 --top-level-division=part :

Treat top-level headings as the given division type in LaTeX, ConTeXt,DocBook, and TEI output. The hierarchy order is part, chapter, then section;all headings are shifted such that the top-level heading becomes thespecified type.

你的 Markdown 应该是这样的:

# Part heading

## Chapter heading

### Section heading

#### Subsection heading

等等。

关于markdown - 我如何让 pandoc 生成书籍部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62491816/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com