FIle with formulae and Export to PDF or Word and Page number

Hello,
can someone please help me with export to PDF or Word.
When I export to PDF, some of formulas are correct, some of them I can not see properly.

I tried everything, every plugin, but always the same. Even when I am in the reading view modus, those formulas are wrong. see attachment. I am doing something wrong, but I don’t know what.

Also, can I add numer the pages when I export to the PDF?
Screenshot 2024-11-23 144512

Screenshot 2024-11-23 144548

I would be thankfull
mandolina

Someone might be able to help you with the formulas if you provide the source for them. And furthermore it’s not unlikely that when you get them correct in the reading view, they’ll also be correct when exported to PDF.

PS! What happens if you remove   from your formulas?

Hi, thank you for the answer. What do you mean when you say “source”?

For example this is what I write in the editing view.

$$
V_0=hS_0 – c_0
$$

When I go to the reading view I am getting this yellow thing …nbsp…

That is strange, as I don’t get it. Neither in live preview nor in reading view. Could you please do the Show debug info, to show which version of Obsidian you’re on?

Do you get the same behaviour if you try your formulas in the Sandbox vault?

Using this code block:

$$  
\begin{aligned}
V_0&=hS_0 – c_0  \\
V_1^d &= hS_1^u-c_1^d \\
V_1^u &= V_1^d \\
hS_1^u-c_1^u &= hS_1^d-c_1^d
\end{aligned}
$$

I get this in reading view:
image

And this after Export to PDF:

image

My test vault is still on version 1.6.4, with Installer 1.5.3, so I might need to update soon it seems… :slight_smile: But I do get the same appearance when running on 1.7.7, with the 1.7.7 installer.

your code is working in both: reading view and PDF export. this means I have always to write \begin and \end?

in the sandbox valut I am getting the same error with my codes, but your formula works.
what I cann’t understand, why some of my codes are working, but some of them not?

Debug info:

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.4.13
Operating system: Windows 10 Home 10.0.22631
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 16
Plugins enabled: 16
1: Dataview v0.5.67
2: Kanban v2.0.51
3: Calendar v1.5.10
4: Recent Files v1.7.2
5: Multi-Column Markdown v0.9.1
6: Table of Contents v0.2.0
7: Excalidraw v2.6.7
8: Git v2.28.2
9: Tasks v7.13.0
10: Zotero Integration v3.2.1
11: Minimal Theme Settings v8.1.1
12: Merge Notes v0.0.9
13: Advanced Merger v1.5.0
14: Advanced Tables v0.22.1
15: Pandoc Plugin v0.4.1
16: Enhancing Export v1.10.9

RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

p.s. I don’t know why is here Windows 10 Home, when I have Windows 11 Home…

$$
\begin{aligned}
\sum\limits_{t=0}^T\frac{CF_t}{(1+IRR)^t}=0
\end{aligned}
$$

editing:
Screenshot 2024-11-23 231817

reading view:

Screenshot 2024-11-23 231843

I don’t understang what does “nbsp” mean :rage:

“Non-breaking space”.

754f4e32225fbf169b86135fe5e48aab7b2ac47e

You are on an extremely old version of the Obsidian installer. I don’t know if it will help or not, but I highly recommend you download Obsidian from the website, and reinstall manually.

It won’t affect your notes. But there are some things that cannot auto-update in Obsidian. Every once in a while, it’s important to re-download from the website.

1 Like

What is the origin of your code? Did you copy it from somewhere which might have that non-breaking space? I typed in my version from scratch.

The align is just needed when you want to align (or have) multiple lines. It shouldn’t be needed for a single line formula.

Hi, thank you for the hint.
I installed new version, but it didn’t help.
I delete in the formula “non vreaking formula” and it works, in both, reading view and export PDF.

I think this answered my question. Thank you.

I write all formulas. No copy paste.
But I never thought the empty space between two characters could cause the problem.
Thank you for the hint how to write in the most efficient way.
If you have more such hints, please tell :slight_smile: