【问题标题】:Pandoc EPUB Page BreakPandoc EPUB 分页符
【发布时间】: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 格式做到这一点?

【问题讨论】:

    标签: pandoc epub


    【解决方案1】:

    \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

    【讨论】:

    • 我试过了,但它对我不起作用。你能把它插入到上面的例子中吗?
    • 这可能取决于您使用的 epub 阅读器...尝试谷歌搜索“epub 分页符”
    猜你喜欢
    • 2013-06-02
    • 1970-01-01
    • 1970-01-01
    • 2014-02-06
    • 2011-08-07
    • 1970-01-01
    • 2021-08-12
    • 1970-01-01
    • 2021-11-24
    相关资源
    最近更新 更多