Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all settings are applied #1

Open
marissadi opened this issue Sep 13, 2021 · 23 comments
Open

Not all settings are applied #1

marissadi opened this issue Sep 13, 2021 · 23 comments

Comments

@marissadi
Copy link

I enabled Style Settings and this CSS snippet, but when I export only some of the settings are applied (e.g. I see the numbering, but the font is still the same as before). These are supposed to be applied to when I select Export to PDF, right?

@phibr0
Copy link
Owner

phibr0 commented Sep 14, 2021

Is the font in the System Settings "CMU Serif"? And is everything toggled on? Sometimes the Font takes some time to load and you will need to export the note 2 times.

@marissadi
Copy link
Author

Yes, I have toggled everything on. I have exported it a couple of times now and it is still using the default font.

image

image

image

@phibr0
Copy link
Owner

phibr0 commented Sep 16, 2021

Could you disable all other Snippets and Themes as a Test please

@ChenghaoMou
Copy link

Same here. I disabled all themes and plugins (except style settings) and installed CMU serif manually. The exported PDF still uses the default font.

@phibr0
Copy link
Owner

phibr0 commented Sep 18, 2021

I cannot reproduce this, not even in a completely clean Vault.
Could you try this in a newly created Vault with the Snippet and the Style Settings installed please?

@ChenghaoMou
Copy link

I created a new vault and turned on this snippet, but still, it shows the default font.

macOS 12.0 Beta (21A5506j)
Obsidian 0.12.16

@phibr0
Copy link
Owner

phibr0 commented Sep 18, 2021

Is the Style Settings Plugin enabled?

@ChenghaoMou
Copy link

I think I know why. The font name installed is not CMU Serif, it should be CMU Serif Roman in my case.
image

@ChenghaoMou
Copy link

The font is different after changing in style settings, but it doesn't look like CMU Serif * to me
image

@ChenghaoMou
Copy link

They are definitely different
image

@ChenghaoMou
Copy link

After manually change the snippet to the following, the PDF is properly rendered with the correct font.

@font-face {
  font-family: "CMU Serif Roman";
  src: local('CMU Serif Roman');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@phibr0
Copy link
Owner

phibr0 commented Sep 18, 2021

This works with your locally installed Font, the Snippet ships with its own Font though and the Name is set as "CMU Serif", works on Windows and Linux atleast.

This might be a mac Issue then?

@ChenghaoMou
Copy link

I would say so. It is the only thing I changed. Changing it to other values (url, data-uri) doesn't seem to load.

@marissadi
Copy link
Author

How are we meant to install the fonts or other things in the snippet? I just have the latex.css file in the .obsidian/snippets folder.

@phibr0
Copy link
Owner

phibr0 commented Sep 27, 2021

The Font is included in the latex.css File. There is no need to install it other than putting it into the snippets folder and enabling it

@thryba
Copy link

thryba commented Nov 25, 2021

I do have the same problem right here on a windows machine

@phibr0
Copy link
Owner

phibr0 commented Nov 25, 2021

Which Theme are you using as a baseline? Please make sure to enable the Style Settings Plugin and try if it works with the default Theme.

@thryba
Copy link

thryba commented Nov 25, 2021

At first I was using the "Sanctum" Theme, but switched backed to Default for testing. It seems to just use the default font of the theme, regardless. Style Settings Plugin is enabled and everything is shown as it should.

@sare000
Copy link

sare000 commented Dec 12, 2021

Hello - I am having similar issues. I think it may be an issue with installation. I have:
-Downloaded and enabled Style Settings Plugin
-Downloaded and put latex.css into the snippets folder

Not sure where I should put the extracted .zip file (obsidian-latex-css) though... Thanks!

@phibr0
Copy link
Owner

phibr0 commented Dec 12, 2021

You don't need the zip, GitHub adds this one automatically.

@sare000
Copy link

sare000 commented Dec 12, 2021

OK thanks. Unfortunately I'm also getting the default markdown style for PDFs. If you have any suggestions, please let me know. Not sure if this is a mac issue.

@phibr0 phibr0 moved this to in progress in Obsidian Plugins Oct 26, 2023
@vortex73
Copy link

I'm on arch linux and I've imported your release css onto my obsidian client. But my exports still have the default format. Is your source link broken for the fonts?

@benf2004
Copy link

benf2004 commented May 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: in progress
Development

No branches or pull requests

7 participants