wei2912 / obsidian-latex

MIT License
146 stars 21 forks source link

FR: Add ability to import multiply .sty files #33

Open mayurankv opened 10 months ago

mayurankv commented 10 months ago

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!

wei2912 commented 10 months ago

@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?

AndreiCravtov commented 5 months ago

any progress on this?

wei2912 commented 5 months ago

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!