Alignment of text with TeX formulas in bullet point

What I’m trying to do

I have some “displayed” tex formulas (using \displaystyle) put in some bullet points. In normal preview, everything works fine, i.e., the text is horizontally centered with the bullet point.

image

But when I turn on the Reading view, it’s no longer centered.

image

The markdown text for the above pictures:

- A displayed integral: $\displaystyle \int f(x)dx$.

Things I have tried

I have searched the forum but didn’t find any related topics.

May I ask how to get the reading view to display the formulas correctly?

1 Like

Are all of your bullet points centered? If not, then it’s actually live preview being wrong I think.

That syntax should give you an inline equation, which should follow the formatting of the rest of the line. So if you want to have the lines normally justified, and the equation centered, you need to enter the finicky world of having cute blocks or in this case a math block within a list.

You “think”? Why don’t you actually check it, instead of spreading misinformation?
The live preview mode centers the bullet point correctly, while the reading mode messes it up. Would be nice, if this was fixed somewhen. Given the live preview can do it correctly already, it is a very realistic fix.

Live Preview and Reading mode has some nuanced differences. However, you can always tweak stuff using CSS.

Targeting LaTeX blocks in bullet list items could be a start.