Sorry, one thing at time as lex said. The book has errors, you won't be able to build it with dblatex.
Try build one chapter at time, for example, the fist chapter I get these errors: /home/santana/asciibook/bitcoinbook/ch01.xml:259: element xref: validity error : IDREF attribute linkend references an unknown ID "private_keys" /home/santana/asciibook/bitcoinbook/ch01.xml:246: element xref: validity error : IDREF attribute linkend references an unknown ID "bitcoin-commerce" To "fix", add the following to ch01.asciidoc: == missing keys [[private_keys]] === private_keys private_keys [[bitcoin-commerce]] === bitcoin-commerce bitcoin-commerce Then build it again: a2x -f pdf -v ch01.asciidoc The json will also be an error, you can find it with: git grep -n "source,json" And then remove the entire line. Em quinta-feira, 30 de outubro de 2014 12h06min39s UTC-3, Eduardo Santana escreveu: > > Alex, dblatex uses the package listings (look the documentation here: > http://get-software.net/macros/latex/contrib/listings/listings.pdf) > > There is no json highlight for it, you are probably doing this: > > [source, json] > ---- > // json code > ---- > > Replace your codes with just (strip [source,json]): > > ---- > // json code > ---- > > If you really whant json highlight you have to create yourself, this post > can help: > http://edusantana.github.io/asciidoc/new-language-with-asciidoc-and-dblatex.html > > > > Em domingo, 26 de outubro de 2014 19h35min18s UTC-3, Alex Petrenko > escreveu: >> >> Hi all! >> I am trying to render this book: https://github.com/aantonop/bitcoinbook >> >> It uses asciidoc format with some non-standard "latexmath" tags for >> mathematical formulae. >> I already spent some hours trying to figure out how to render it. What I >> tried to do is basically: >> >> asciidoc -b docbook45 -o test.xml book.asciidoc >> >> and then: >> >> dblatex -D --pdf -o test.pdf test.xml >> >> I tried many different tools with many different settings, but I always >> get errors on the second stage (rendering docbook produced by asciidoc to >> pdf or html): >> >> XRef to nonexistent id: 51pct >> Missing character � >> Missing character � >> Build test.pdf >> pdflatex failed >> test.tex:861: Package Listings Error: Couldn't load requested language. >> test.tex:861: leading text: ...lstlisting}[language=json,firstnumber=1,] >> test.tex:861: Package Listings Error: language json undefined. >> test.tex:861: leading text: ...lstlisting}[language=json,firstnumber=1,] >> ... >> >> and many many more errors, than compilation fails. >> >> Can someone tell, what am i doing wrong? >> I really want to read the whole book with all the formulas and equations >> rendered properly. I'll buy it after release anyway, but it was postponed >> again until december, so i cant wait anymore :) >> Please help >> > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
