# Baut das Handbuch nach handbuch.pdf. # # Braucht MiKTeX oder TeX Live mit xelatex. Zweimal, damit das # Inhaltsverzeichnis stimmt. $ErrorActionPreference = 'Stop' Set-Location $PSScriptRoot foreach ($lauf in 1..2) { xelatex -interaction=nonstopmode handbuch.tex | Out-Null if ($LASTEXITCODE -ne 0) { throw "xelatex ist in Durchlauf $lauf gescheitert. Siehe handbuch.log" } } Remove-Item handbuch.aux, handbuch.log, handbuch.out, handbuch.toc -ErrorAction SilentlyContinue Write-Host "handbuch.pdf gebaut ($([math]::Round((Get-Item handbuch.pdf).Length/1KB)) KB)"