我试图编译包含一些方程式的asciidoc文档,格式通常如下:
.First equation
[latexmath]
++++++++++++++++++++++++++++++++++++++++++++
\[C = \alpha + \beta Y^{\gamma} + \epsilon\]
++++++++++++++++++++++++++++++++++++++++++++据我所知,我首先需要使用asciidoc处理器将其编译成docbook:
$ asciidoctor -o test.xml -b docbook test.asciidocasciidoctor抱怨latex计量块,但无论如何生成一些xml:
asciidoctor: WARNING: test.asciidoc: line 3: invalid style for pass block: latexmath然后我尝试使用dblatex创建pdf:
dblatex -D --pdf -o test1.pdf test.xml然而,产生的pdf是空的,我看不出我的方程式。我做错了什么?
特别是我试图编译这个文档:https://github.com/aantonop/bitcoinbook/blob/develop/ch04.asciidoc
我相信这个问题更多的是与阿西多夫有关,而不是特克斯,但你能帮我吗?如何在Ubuntu中呈现此文件?
我已经在asciidoctor论坛上问过这个了,但是没有人接.http://discuss.asciidoctor.org/Invalid-style-for-pass-block-latexmath-td2373.html
发布于 2014-10-28 01:24:42
如果您想用html输出来传递math属性,则必须通过命令行:asciidoctor -a math或在文档::math:的标题中传递。
我无法让它与dblatex或asciidoctor-epub3 3一起工作,但是普通的html应该可以工作,您可以从firefox或chrome打印到pdf。
发布于 2021-09-01 00:15:38
你需要把这两样都处理掉,这样才能奏效。
https://stackoverflow.com/questions/26577065
复制相似问题