Fix --synctex argument order for Typst compile
Build and Deploy Verso / deploy (push) Successful in 11m33s
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:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user