I am writing a book and my chapters contain math. I am using asciidoc-mathematical and the
:stem: latexmath
directive at the beginning of every chapter. If I run asciidoc on a chapter itself, the generated PDF has math rendered correctly in it.
But when I try to run asciidoc on my book.adoc which is simply
include::chapter01.adoc[]
include::chapter02.adoc[]
and so on, the math is not rendered correctly.
Additional Information: each of my chapters have a imagesdir defined which is like ../images/<the-folder-for-the-chapter>. E.g.:
:imagesdir: ../images/chapter01
How can I get it to work?