Closed witzatom closed 5 years ago
Hey, ran into issues with the renderer aswell. It looks that the default font in asciidoctor-pdf does not support a lot of the unicode math symbols.
stem:[0 \in {0, 1, 2, 3}] gets rendered as Image taken directly from images/stem-*
I do not have the same issue with sqrt as the OP has though.
stem:[\sqrt 4 = 2] gets rendered correctly
Details on how to reproduce: Dockerfile of my asciidoctor image
FROM asciidoctor/docker-asciidoctor RUN gem install asciidoctor-mathematical --no-ri --no-rdoc CMD ["/bin/bash"]
command that I use to build: docker run --rm -v ${PWD}:/documents/ asciidoctor_withmath asciidoctor-pdf -r asciidoctor-mathematical test.adoc
docker run --rm -v ${PWD}:/documents/ asciidoctor_withmath asciidoctor-pdf -r asciidoctor-mathematical test.adoc
Related issues: https://github.com/asciidoctor/docker-asciidoctor/issues/78 https://github.com/asciidoctor/asciidoctor-mathematical/issues/41
Workaround - add these fonts to render symbols:
apk add ttf-dejavu
So it shall be caused by missing fonts. The workaround is the solution.
Hey, ran into issues with the renderer aswell. It looks that the default font in asciidoctor-pdf does not support a lot of the unicode math symbols.
stem:[0 \in {0, 1, 2, 3}] gets rendered as Image taken directly from images/stem-*
I do not have the same issue with sqrt as the OP has though.
stem:[\sqrt 4 = 2] gets rendered correctly
Details on how to reproduce: Dockerfile of my asciidoctor image
command that I use to build:
docker run --rm -v ${PWD}:/documents/ asciidoctor_withmath asciidoctor-pdf -r asciidoctor-mathematical test.adoc
Related issues: https://github.com/asciidoctor/docker-asciidoctor/issues/78 https://github.com/asciidoctor/asciidoctor-mathematical/issues/41