add pdflatex command

This commit is contained in:
Frieder Schlesier 2017-01-11 16:54:13 +01:00
parent d8658d4512
commit c9f0f517a3
1 changed files with 12 additions and 0 deletions

View File

@ -269,6 +269,18 @@ latex() {
${DOCKER_REPO_PREFIX}/latex "$@"
}
pdflatex() {
local file=$@
local cur_dir=$(pwd)
local FILENAME=${file%%.*}
latex bash -c "latex $file; latex $file; pdflatex $file"
sudo rm $FILENAME.aux $FILENAME.dvi $FILENAME.out
sudo chown ${DOCKER_REPO_PREFIX}:${DOCKER_REPO_PREFIX} $FILENAME.pdf
}
libreoffice() {
del_stopped libreoffice