You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example that will not align correctly
Blah blah $E$ blah blah $g$.
You can detect the baseline misalignment if you try putting periods inside and outside the inline math.
$E.$. and $g.$.
Sadly i am not sure how this could be fixed without some information from the TeX state about where, within the box, the baseline actually falls. I wonder if you have any thoughts?
I ran a test with a serif font, a sans-serif font, and CMU Serif (Computer Modern) itself:
Yes, there seem to be some minor but perceptible misalignment. Let's zoom in:
I believe the effect is due mostly to rounding errors in rendering calculations (especially since some points are SVG images and some are rendered by the font engine of the browser).
The mechanism antex uses to acquire metrics has some limitations, but I think there's no fundamental flaw in it except for the assumption that LaTeX is trustworthy (since the relation between boxes and ink depends completely on the common sense of the font designer).
I don't think I can do any better than this. 😅
I'll close this @jonsterling but please do feel free to post some screenshots (and links perhaps?) if you're seeing deviations bigger than the ones above. Thanks!
Some problems were had with inline math alignment:
@jonsterling if you can provide a sample of the specific LaTeX code that failed to render correctly that'd be really helpful for testing! ❤️
The text was updated successfully, but these errors were encountered: