wei2912/obsidian-latex

FR: Add ability to import multiply .sty files

Opened this issue · 3 comments

It would be great if you could import multiple preamble files. i.e. all files in a folder or paths to multiple files (ideally both options). This way you can separate out massive preambles into smaller more manageable file.

The best result would be being able to use \usepackage to import other preamble files but this is understandably much more different.

Please let me know if this would be possible or you would welcome a PR with this feature!

@mayurankv That sounds good, and I think it's definitely feasible to implement (see https://github.com/wei2912/obsidian-latex/blob/master/main.ts#L22 which currently just loads a single file). My main concern is with the implementation details, as it could be messy/unintuitive to support too many combinations. Perhaps you could implement glob matching?

any progress on this?

Hey @AndreiCravtov, I'm not currently working on this but I'd be happy to review any PRs.

Bumping @mayurankv if you're still interested in this feature!