gpt4 book ai didi

pandoc - 使用 Pandoc 转换时如何维护 HTML 内部链接

转载 作者:行者123 更新时间:2023-12-01 02:23:30 26 4
gpt4 key购买 nike

我正在尝试使用 Pandoc 从 html 转换为 pdf。输出非常好,仍然使用命令 pandoc index.html -o output.pdf 我丢失了所有内部链接(从目录到章节,从文本到脚注等)。

在我的 HTML 中,这是 outdegree 链接

<p class="calibre18"><a href="#calibre_link-73"><span class="calibre8">CHAPTER ONE</span></a><br class="calibre19"></br><a href="#calibre_link-73">The Ever Expanding Domain of Computation</a></p>

然后降落在这里
<a href="#calibre_link-73">Chapter 1</a> makes the case that because of...

和这里
<p class="calibre18"><a href="#calibre_link-73"><span class="calibre8">CHAPTER ONE</span></a><br class="calibre19"></br><a href="#calibre_link-73">The Ever Expanding Domain of Computation</a></p>...

有没有办法将所有链接也保留在输出中?

最佳答案

Pandoc User's Guide section on Internal Links

Internal links are currently supported for HTML formats (including HTML slide shows and EPUB), LaTeX, and ConTeXt.



这表明 PDF 输出当前不支持内部链接,即使 PDF 输出是通过 LaTeX 生成的。

关于pandoc - 使用 Pandoc 转换时如何维护 HTML 内部链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18427446/

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