PDF export of some Latex not rendered at Latex

Steps to reproduce

Use this md file contents:
Confidence Intervals
- Scenario A: Interval is mean$\pm$ME( marginOfError) where ME is critical value Z * standard error, i.e. $\mu\pm\left( \frac{\sigma}{\sqrt{ n }} \right)*Z_{\frac{\alpha}{2}}$
- Z value for $\frac{\alpha}{2}$: NORM.S.INV(1-alpha/2)

Then export to PDF. The second Latex renders as it does onscreen, but the first Latex is rendered without any Latex transformation.

Did you follow the troubleshooting guide? [Y/N] Y

Yes, duplicated in sandbox.

Expected result

PDF should look like it’s rendered in Obsidian.

Actual result

Looked like this:
Confidence Intervals

  • Scenario A: Interval is mean±ME( marginOfError) where ME is critical value Z standard error ,
    i.e. $\mu\pm\left( \frac{\sigma}{\sqrt{ n }} \right) Z_{\frac{\alpha}{2}}$
  • Z value for
    α
    2
    : NORM.S.INV(1-alpha/2)

Environment


Additional information

Using currernt version of Foxit reader on Win 11.

disclaimer: i have not personally used the export functionality.

it appears that the * in “critical value Z * standard” is opening italics formatting. escaping it with \* might solve your issue.

Thank you. That’s indeed the case and now easy for me to address.

But I do still think this is a bug, in that what I see rendered by Obsidian is not what I see in the PDF rendition.

As motivation, I’ll tell you what happened to me. The text I shared is part of a larger Obsidian page that I was using as a crib sheet for an exam. I hadn’t read the PDF version in advance, so I was surprised during the exam when I found this.

i agree that Obsidian should render what will be rendered by its export features.

one thing to note, this is only an issue for Live Preview. if you go into Reading mode, you will see the same italics rendering. much quicker way to check for these things than exporting to pdf first, even if not ideal.

Good idea. I’ll know to do this next time. Thanks.

1 Like