Files
unix-scripts/Compilers/compilaLatexPDF.sh
2023-04-03 17:47:42 +02:00

12 lines
267 B
Bash
Executable File

#!/bin/bash
if [ $# -ne 2 ]
then
echo "./ejecutable auxiliar/ fichero.tex"
exit 1
fi
dir=$(pwd)
#pdflatex --output-directory="$dir/$1" "$dir/$2"
xelatex --output-directory="$dir/$1" "$dir/$2"
pdf=$(echo $2 | awk -F'.tex' '{print $1}')
mv "$dir/$1/$pdf.pdf" "$dir/"