diff --git a/Cargo.toml b/Cargo.toml index bef5592..9ed65f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "texforge" -version = "0.3.0" +version = "0.4.0" edition = "2021" rust-version = "1.75" description = "Self-contained LaTeX to PDF compiler CLI" @@ -38,6 +38,9 @@ flate2 = "1.1" tar = "0.4" zip = { version = "2", default-features = false, features = ["deflate"] } +# File watching for --watch mode +notify = { version = "7", features = ["macos_fsevent"] } + # Mermaid diagram rendering mermaid-rs-renderer = { version = "0.2", default-features = false } resvg = "0.46" diff --git a/README.md b/README.md index 9625a02..fa6dfc6 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,13 @@ rm -f ~/.local/bin/texforge # texforge binary rm -rf ~/.texforge/ # tectonic engine + cached templates ``` ---- +## Skill + +An [texforge Skill](https://skills.sh/jheisonmb/skills/texforge) is available for AI-assisted LaTeX workflows with texforge: + +```bash +npx skills add https://github.com/jheisonmb/skills --skill texforge +``` ## Quick Start @@ -93,6 +99,35 @@ texforge build texforge clean ``` +## Workflow + +```mermaid +sequenceDiagram + actor User + participant CLI as texforge + participant Tectonic + + User->>CLI: texforge new my-doc + CLI-->>User: project scaffolded + + alt Existing LaTeX project + User->>CLI: texforge init + CLI-->>User: project.toml generated + end + + User->>CLI: texforge check + CLI-->>User: errors with file:line + suggestion + + User->>CLI: texforge fmt + CLI-->>User: .tex files formatted in place + + User->>CLI: texforge build + Note over CLI: render embedded diagrams to PNG + CLI->>Tectonic: compile build/main.tex + Note over CLI,Tectonic: auto-installs tectonic on first run + Tectonic-->>User: build/main.pdf +``` + --- ## Commands @@ -103,6 +138,7 @@ texforge clean | `texforge new -t