Fix --synctex argument order for Typst compile
Build and Deploy Verso / deploy (push) Successful in 11m33s

Typst's CLI requires options before positional arguments (INPUT OUTPUT).
Placing --synctex after output.pdf caused it to be treated as an extra
positional arg and rejected with 'unexpected argument'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-07 08:09:52 +00:00
parent 43a622cd71
commit 0780963bc7
+1 -1
View File
@@ -61,7 +61,7 @@ function _buildTypstCommand(mainFile) {
// --synctex generates output.synctex.gz alongside the PDF, enabling
// bidirectional editor↔PDF sync (same infrastructure as LaTeX SyncTeX).
const inputPath = `$COMPILE_DIR/${mainFile}`
const cmd = `quarto typst compile ${inputPath} output.pdf --synctex output.synctex.gz 2>&1`
const cmd = `quarto typst compile --synctex output.synctex.gz ${inputPath} output.pdf 2>&1`
return ['/bin/sh', '-c', cmd]
}