From 0780963bc71424830e11ebd0810cc2b9e413d76b Mon Sep 17 00:00:00 2001 From: claude Date: Sun, 7 Jun 2026 08:09:52 +0000 Subject: [PATCH] Fix --synctex argument order for Typst compile 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 --- services/clsi/app/js/TypstRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/clsi/app/js/TypstRunner.js b/services/clsi/app/js/TypstRunner.js index c25045a9be..b69744df9f 100644 --- a/services/clsi/app/js/TypstRunner.js +++ b/services/clsi/app/js/TypstRunner.js @@ -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] }