#!/bin/bash # file mycompile bibtex pdf/$1 & pdflatex -synctex=1 -interaction=nonstopmode -output-directory=pdf $1.tex & zmore pdf/$1.synctex.gz > pdf/$1.synctex sed -i 's/Input:1:'$1'.tex/Input:1:..\/'$1'.tex/g' pdf/$1.synctex rm pdf/$1.synctex.gz gzip pdf/$1.synctex
Das kann man einfach in den Editor als compile-File einbinden und die .pdf wird im Ordner pdf (kann man natürlich anpassen) erstellt.
Syntax in kile:
./compile.sh
Options: '%S'
Dann muss man noch in den Build-Tools ViewPDF anpassen:
command: okular (Beispiel)
Options: "pdf/"'%target'
Ich weiß, dass das jetzt keine Raketentechnologie ist, aber hätte es sowas bereits gegeben, hätte ich mir sicher einiges an Zeit gespart