I am trying to compile asciidoc files that contain equations in the following format:
latexmath:[\(\mathbb{F}_p\)]
[latexmath]
++++
\begin{equation}
{K = k * G}
\end{equation}
++++
First I tried to use conventional tools like asciidoc chrome extension, but they do not recognize this syntax. After a bit of googling I found out that I need to compile the file first to docbook xml format and then process it with dblatex to create Pdf or some other readable format.
But unfortunately this doesn't seem to work on my Ubuntu 14.04, I see a lot of errors when dblatex processes docbook files:
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