Skip to content

Conversation

@seofernando25
Copy link
Contributor

@seofernando25 seofernando25 commented Nov 14, 2025

I’ve been missing auto-compile for a bit, so this adds a simple “compile on save” toggle for LaTeX/Typst.
It doesn’t quite close #86 but gives us some convenience until then.

Handles both auto-save and manual save.

Here is a small summary of the changes:

  • src/types/documents.ts
    • add autoCompileOnSave / typstAutoCompileOnSave to projectMetadata
  • src/components/output/LaTeXCompileButton.tsx and TypstCompileButton.tsx
    • add toggle and trigger LaTeX/Typst compilation when file-saved fires for .tex/.typ files
  • src/services/EditorLoader.ts
    • dispatch file-saved events from manual and auto-saves
  • src/styles/components/latex-typst.css
    • reuse the existing checkbox styles for the auto-compile toggle
image image

@seofernando25 seofernando25 marked this pull request as ready for review November 14, 2025 10:23
@fabawi
Copy link
Contributor

fabawi commented Nov 14, 2025

Fantastic! I will have a look and merge it soon if everything runs fine. Thank you

@seofernando25
Copy link
Contributor Author

Fantastic! I will have a look and merge it soon if everything runs fine. Thank you

Thank you! Feel free to take over and apply any changes to the branch

@fabawi fabawi mentioned this pull request Nov 15, 2025
4 tasks
@fabawi fabawi merged commit afc8a96 into TeXlyre:main Nov 15, 2025
1 check passed
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.

Compile Typst/LaTeX as you write

2 participants