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

Setting for preamble.sty location #11

Open
JeppeKlitgaard opened this issue Jun 3, 2021 · 11 comments
Open

Setting for preamble.sty location #11

JeppeKlitgaard opened this issue Jun 3, 2021 · 11 comments

Comments

@JeppeKlitgaard
Copy link

Hi @xldenis

Thank you for making this plugin - I am finding it super useful.

I do find it slightly untidy to have my preamble in the root of the vault though, and I am wondering if you would implement a setting that can be used to specify the path to the preamble file? Perhaps this could include the option to specify more than one preamble file as well.

If you don't want to implement this yourself, I would be happy to submit a PR for it at some point during the next month.

@JeppeKlitgaard JeppeKlitgaard changed the title Setting for preample.sty location Setting for preamble.sty location Jun 3, 2021
@xldenis
Copy link
Collaborator

xldenis commented Jun 4, 2021

Hi! That sounds like a great idea. If you want to write a PR for it that will definitely be welcomed, otherwise I'll add this to my todo list, but I likely can't touch it until after a paper deadline in early july.

@JeppeKlitgaard
Copy link
Author

Fantastic!

I have a few busy weeks ahead as well, but after that I'll have a look at putting together a quick PR!

@Hunanbean
Copy link

Here's hoping that you have time to institute this setting!

Thank you for the plugin. I consider it essential.

@xldenis
Copy link
Collaborator

xldenis commented Jan 13, 2022

oh hey! yea, I think this should be fairly simple to achieve.

@JeppeKlitgaard
Copy link
Author

I have a personal setup that does this currently, but I am not sufficiently happy with the state of the code to make it available. I am having some trouble with the reliability of loading the MathJax, particularly on 0.13.

@xldenis
Copy link
Collaborator

xldenis commented Jan 13, 2022

If you push your code I can also take over. I'm currently investigating the issues with the live preview mode. Unfortunately, the way Obsidian & MathJax are built means this plugin is necessarily going to be a major hack.

@JeppeKlitgaard
Copy link
Author

@xldenis I implemented this as part of another plugin I am making, but which is not yet published -- it really was just a setting and a vault read call, so nothing fancy

@Elaws
Copy link

Elaws commented Feb 14, 2022

Hi!
Are there any news on that great FR ?
Thanks :)

@amzon-ex
Copy link

amzon-ex commented Sep 5, 2022

Hi,
noting the nature of this FR, I wonder if it would be possible to "choose the closest preamble" - i.e. have folder-level preamble settings.

The method would be this:
Look for a preamble.sty file in the folder the note is contained in. If not found, check progressively the parent folders, until the root, which would be the global preamble.

Would this be possible to implement?

@mayurankv
Copy link

That suggestion from @amzon-ex sounds really useful!

@xldenis
Copy link
Collaborator

xldenis commented Oct 25, 2022

I'm no longer actively maintaining this, as indicated in the README I would be happy to hand off this plugin to someone else. If someone wants to write a PR, I'm happy to merge it though.

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

No branches or pull requests

6 participants