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

LaTeX support with image conversion to PDF, SVG, PNG #400

Merged
merged 23 commits into from
Feb 24, 2025

Conversation

Yetenol
Copy link
Contributor

@Yetenol Yetenol commented Feb 2, 2025

LaTeX Feautures

  • Compiles latex/tex codeblocks in temporary folder to PDF (requires TeX Live or MiKTeX)
  • Uses Texfot to filter stdout to relevant messages (included in TeX Live)
  • Option to crop PDF to content to remove excess whitespace using pdfcrop (included in TeX Live)
  • Option to convert PDF to SVG, PNG using Poppler, Cairo (included in TeX Live)
  • Option to convert PDF to SVG using Inkscape (Must be installed separately)
  • Generated graphics are saved in your vault's attachment folder
  • Option to adopt Obsidian's font settings for PDF generation

For usage examples, see README > LaTeX. 1f119e1

General improvement

  • Outputter can now also write rendered markdown and icons (besides the previous .write() and .writeErr()) 4b82a44 c7b66f9
  • fixed two rendering conflicts with the popular Minimal theme ba53ed8 582d297
  • fixed warning for regexp capture group requiring $\ge$ es2018 d05ec0e
  • the commits starting with refactor: are incrementally improving the long if-else construct for the run button listener, because it hurt my eyes

Let me know, what you think. 🤗 PS: Greetings from Berlin

ezgif-2fdf349a96d5f

@twibiral twibiral changed the base branch from master to develop February 24, 2025 20:58
@twibiral twibiral changed the base branch from develop to master February 24, 2025 21:09
@twibiral twibiral changed the base branch from master to develop February 24, 2025 21:09
@twibiral
Copy link
Owner

Wow, that's amazing! Thank you for contributing!

@twibiral twibiral merged commit 820edef into twibiral:develop Feb 24, 2025
@twibiral
Copy link
Owner

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

Successfully merging this pull request may close these issues.

2 participants