【发布时间】:2017-09-21 07:57:39
【问题描述】:
采取以下MWE
% My Book
% J. Doe
Content
\newpage
Content that should be on a new page
当我跑步时
$ pandoc book.txt -o book.epub
我没有在单独的页面中获得第二个内容。如何使用 EPUB 格式做到这一点?
【问题讨论】:
采取以下MWE
% My Book
% J. Doe
Content
\newpage
Content that should be on a new page
当我跑步时
$ pandoc book.txt -o book.epub
我没有在单独的页面中获得第二个内容。如何使用 EPUB 格式做到这一点?
【问题讨论】:
\newpage 是一个 LaTeX 命令,仅在使用 LaTeX 生成 PDF 时有效。
对于 ePUB,您需要开始一个新章节(使用 # level 1 header),或者您可以尝试插入以下内容:
<div style="page-break-before:always;"></div>
注意有一个open issue on the pandoc issue tracker about supporting page-breaks across output formats。
【讨论】: