2013-03-03 11:19:50 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
2013-06-25 22:56:10 +02:00
|
|
|
cat<<EOF
|
|
|
|
Usage: ${0##*/} FILE"
|
2013-03-03 11:19:50 +01:00
|
|
|
|
2013-06-25 22:56:10 +02:00
|
|
|
LaTeX quick compiler. It adds the preambule -- and the \end{document} --
|
|
|
|
automatically.
|
|
|
|
|
|
|
|
EOF
|
2013-03-03 11:19:50 +01:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
## One line is mandatory.
|
|
|
|
PREAMBLE='\documentclass[10pt,a4paper]{article}\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\usepackage{amsmath,amssymb,amsfonts}\usepackage{geometry}\usepackage{lmodern}\usepackage{marvosym}\usepackage{textcomp}\DeclareUnicodeCharacter{20AC}{\EUR{}}\DeclareUnicodeCharacter{2264}{\leqslant}\DeclareUnicodeCharacter{2265}{\geqslant}\begin{document}\input'
|
|
|
|
|
|
|
|
END='\end{document}'
|
|
|
|
|
|
|
|
pdflatex -file-line-error-style -interaction nonstopmode -jobname="${1%.tex}" "$PREAMBLE" "$1" "$END"
|