asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

inline math baseline raised from normal text #469

Closed masa300V closed 3 years ago

masa300V commented 4 years ago

When generating a PDF output, I found a baseline position of my inline math is way higher than the other text baseline. No matter I try different scaling inside my math expressions, it seems like resulting image output placed at raised baseline. My example screenshot below: PDF result upper half, working AsciidocFX lower half. Full-scale image has thin red lines to illustrate my finding.

test_inline_math

I'm using version 1.7.1 on windows 10. Please provide a way to control inline math (inline image too?) baseline position.

best regards, Masashi

rahmanusta commented 4 years ago

Sorry, this component has no such feature. You can play with css for html and xslt for pdf.