Commit 6f71c7b
committed
ext/imgmath: batch LaTeX compilation via pre-rendering
Add ``imgmath_batch_size`` config option (default 1). When greater
than 1, equations are collected on ``env-updated`` and compiled into
multi-page DVI documents before writing, reducing N LaTeX processes
to ceil(N/B), then split via ``dvipng -pp`` / ``dvisvgm --page``.
Filenames, embed mode, depth handling, and error reporting match
single-equation mode. Batching is disabled when a custom
``template.tex``/``preview.tex`` template is detected.1 parent e44a40e commit 6f71c7b
3 files changed
Lines changed: 414 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
193 | 206 | | |
194 | 207 | | |
195 | 208 | | |
| |||
0 commit comments