fix: Disable internal pdf previewer (-view=none) in watch mode for headless container

This commit is contained in:
2026-10-24 10:29:28 +02:00
parent 0e70eaec90
commit 89056c51a1
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -109,7 +109,13 @@ if ($Clean) {
$stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
docker run --rm -v "${FullProjectPath}:/workspace" -w /workspace $ImageName @cmdArgs
$dockerRunArgs = @("--rm", "-v", "${FullProjectPath}:/workspace", "-w", "/workspace")
if ($Watch) {
# Interaktiv für sauberes Beenden per Strg+C
$dockerRunArgs += "-it"
}
docker run @dockerRunArgs $ImageName @cmdArgs
$stopwatch.Stop()
+3 -3
View File
@@ -60,11 +60,11 @@ case "$COMMAND" in
watch)
shift || true
TARGET=$(resolve_target "$1")
echo "==> Starte kontinuierlichen Watch-Modus (latexmk -pvc)..."
echo "==> Starte kontinuierlichen Watch-Modus (latexmk -pvc -view=none)..."
if [ -n "$TARGET" ]; then
exec latexmk -pvc -pdf "$TARGET"
exec latexmk -pvc -view=none -e '$sleep_time=1;' -pdf "$TARGET"
else
exec latexmk -pvc -pdf
exec latexmk -pvc -view=none -e '$sleep_time=1;' -pdf
fi
;;