asciidoctor / asciidoctor-mathematical

An extension for Asciidoctor that converts the content of STEM blocks and inline macros using Mathematical.
MIT License
49 stars 44 forks source link

Difficulties vertically aligning inline latexmath #71

Closed davidplowman closed 4 years ago

davidplowman commented 4 years ago

Hi, apologies if this isn't the appropriate forum to seek advice, I'm afraid I've failed to find anything on the net.

I have a very simple example file, consisting of a single line (:

An inline equation latexmath:[w] and bigger latexmath:[{\large w}]. With subscripts latexmath:[w{ij}] bigger latexmath:[{\large w{ij}}]. (As plain text, not an equation, we get w~ij~)

and turn it into a pdf using

asciidoctor-pdf -r asciidoctor-mathematical -o test.pdf test.adoc

My problem is that the inline equations (whether using png or svg mode) don't sit on the line with the other text - and it gets worse when there are subscripts. Does anyone know of any techniques to work around this situation?

Thanks

ProgramFan commented 4 years ago

A screen shot for this?

davidplowman commented 4 years ago

Sorry, didn't know I could do that!

screenshot

ProgramFan commented 4 years ago

This problem needs help from asciidoctor-pdf. It is a problem of layout inline images. Would you please report there?

davidplowman commented 4 years ago

I've raised the issue here: https://github.com/asciidoctor/asciidoctor-pdf/issues/1483 so I'll close this one. Thanks for your help!