我在这里的第一个问题很兴奋
在我的ASCIIDOC代码中
Big Name{wj}footnote:[Big because X] is found.这将完美地呈现到生成html的(一个长的)页面的末尾。
Big Name [1] is found.
<a lot of other text till the end of the one long html page>
--
1. Big because X但是生成PDF时,它会呈现到文本中:
Big Name [1: Big because X] is found. 为什么PDF一代是不同的?如何控制PDF生成过程中呈现的类型?
我使用
asciidoctor sample.adoc
asciidoctor -r asciidoctor-pdf -b pdf sample.adoc使用
asciidoctor -v
Asciidoctor 1.5.4 [http://asciidoctor.org]
Runtime Environment (ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)发布于 2018-04-06 10:40:25
似乎在asciidoctor中有一个bug (参见https://github.com/asciidoctor/asciidoctor-pdf/issues/73)。
但是,我能够用asciidoctor(参见https://github.com/asciidoctor/asciidoctor-fopub)生成脚注(和其他与图书相关的结构)。
因此,下载fopub之后,首先必须将adoc转换为xml,然后将xml转换为pdf。
因此命令将类似于以下内容:
asciidoctor -b docbook -a data-uri! your_document.adoc
/path/to/fopub your_document.xmlhttps://stackoverflow.com/questions/47060008
复制相似问题