我正在尝试用Pandoc将html转换为pdf。输出相当不错,仍然使用命令pandoc index.html -o output.pdfI丢失我所有的内部链接(从目录到章节,从文本到脚注,等等)。
在我的HTML中,这是出度链接
<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>...有没有办法在输出中保留所有的链接?
发布于 2013-08-25 18:03:09
Pandoc User's Guide section on Internal Links说
内部链接目前支持超文本标记语言格式(包括超文本标记语言幻灯片和EPUB)、LaTeX和ConTeXt。
这表明,尽管PDF输出是通过LaTeX生成的,但PDF输出目前不支持内部链接。
发布于 2013-08-26 01:48:48
内部链接应该在PDF中直接工作。但是,出于打印目的,默认情况下不对它们进行着色。您是否尝试过单击本应为链接的文本?
https://stackoverflow.com/questions/18427446
复制相似问题