fix: Disable internal pdf previewer (-view=none) in watch mode for headless container
This commit is contained in:
+7
-1
@@ -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
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user