|
1 | | -# texforge |
| 1 | +``` |
| 2 | + ███████████ █████ █████ ███████████ |
| 3 | +░█░░░███░░░█ ░░███ ░░███ ░░███░░░░░░█ |
| 4 | +░ ░███ ░ ██████ ░░███ ███ ░███ █ ░ ██████ ████████ ███████ ██████ |
| 5 | + ░███ ███░░███ ░░█████ ░███████ ███░░███░░███░░███ ███░░███ ███░░███ |
| 6 | + ░███ ░███████ ███░███ ░███░░░█ ░███ ░███ ░███ ░░░ ░███ ░███░███████ |
| 7 | + ░███ ░███░░░ ███ ░░███ ░███ ░ ░███ ░███ ░███ ░███ ░███░███░░░ |
| 8 | + █████ ░░██████ █████ █████ █████ ░░██████ █████ ░░███████░░██████ |
| 9 | + ░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░███ ░░░░░░ |
| 10 | + ███ ░███ |
| 11 | + ░░██████ |
| 12 | + ░░░░░░ |
| 13 | +``` |
2 | 14 |
|
3 | 15 | [](https://github.com/JheisonMB/texforge/actions/workflows/ci.yml) |
4 | 16 | [](https://github.com/JheisonMB/texforge/actions/workflows/release.yml) |
@@ -83,20 +95,12 @@ npx skills add https://github.com/jheisonmb/skills --skill texforge |
83 | 95 | ## Quick Start |
84 | 96 |
|
85 | 97 | ```bash |
86 | | -# Create a new project from a template |
87 | | -texforge new mi-tesis |
88 | | - |
89 | | -# Check for errors without compiling |
90 | | -texforge check |
| 98 | +# Interactive wizard — new project or migrate existing |
| 99 | +texforge init |
91 | 100 |
|
92 | | -# Format your .tex files |
93 | | -texforge fmt |
94 | | - |
95 | | -# Build to PDF |
| 101 | +# Or directly: |
| 102 | +texforge new mi-tesis |
96 | 103 | texforge build |
97 | | - |
98 | | -# Remove build artifacts |
99 | | -texforge clean |
100 | 104 | ``` |
101 | 105 |
|
102 | 106 | ## Workflow |
@@ -128,9 +132,26 @@ sequenceDiagram |
128 | 132 | Tectonic-->>User: build/main.pdf |
129 | 133 | ``` |
130 | 134 |
|
| 135 | +## `texforge init` |
| 136 | + |
| 137 | +Interactive wizard. Auto-detects the context: |
| 138 | + |
| 139 | +- If a `.tex` file with `\documentclass` is found in the current directory — migrates the existing project (asks for title and author, generates `project.toml`) |
| 140 | +- Otherwise — guides creation of a new project (asks for name and template) |
| 141 | + |
| 142 | +```bash |
| 143 | +# Existing LaTeX project |
| 144 | +cd mi-tesis-existente/ |
| 145 | +texforge init |
| 146 | + |
| 147 | +# Empty directory |
| 148 | +mkdir mi-nuevo-doc && cd mi-nuevo-doc |
| 149 | +texforge init |
| 150 | +``` |
| 151 | + |
131 | 152 | --- |
132 | 153 |
|
133 | | -## Commands |
| 154 | + |
134 | 155 |
|
135 | 156 | | Command | Description | |
136 | 157 | |---|---| |
|
0 commit comments