Hi Alex. I had much better luck using fop instead of dblatex

sudo apt-get install fop
a2x -fpdf -dbook --fop book.asciidoc


The pdf produced has some issues with a handful of large images and wrapped 
code, but it looks pretty good otherwise!

(BTW, I apologize that my reply is off-topic for the forum. I would have 
replied privately, but since a Google search for the errors generated with 
a2x when working with "Mastering Bitcoin" link to this discussion, I figure 
I'll leave it as a guidepost for anyone else going down this road)

On Sunday, October 26, 2014 at 5:35:18 PM UTC-5, Alex Petrenko wrote:
>
> 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.

Reply via email to