我正在嘗試編譯包含以下格式的等式的asciidoc文件:
latexmath:[\(\mathbb{F}_p\)]
[latexmath]
++++
\begin{equation}
{K = k * G}
\end{equation}
++++
首先,我嘗試使用傳統的工具,如asciidoc chrome擴展,但他們不認識這種語法。 經過一番Google搜索後,我發現我需要先將文件編譯為docbook xml格式,然後使用dblatex處理它以創建Pdf或其他可讀格式。
但不幸的是,這似乎並沒有在我的Ubuntu 14.04上工作,當dblatex處理docbook文件時,我發現很多錯誤:
Error: no ID for constraint linkend: signature.
XRef to nonexistent id: signature
Error: no ID for constraint linkend: ch03_bitcoin_client.
XRef to nonexistent id: ch03_bitcoin_client
...
ch04.docbook.tex:188: Bad math environment delimiter.
ch04.docbook.tex:188: leading text: $\begin{equation}
ch04.docbook.tex:188: Undefined control sequence \+.
ch04.docbook.tex:188: leading text: $\begin{equation} {y^2 = (x^3 \+
...
What am I doing wrong? In particular I'm interested in this file: https://github.com/aantonop/bitcoinbook/blob/develop/ch04.asciidoc