Melhora arquivo shell.

parent 883c5239
FILENAME=$1
knit $FILENAME.Rnw
pdflatex $FILENAME.tex
if [ "$1" = "-h" ]; then
echo 'Usage:'
echo ' $1: filename without extension, e.g. `slides`.'
echo ' $2: {0, 1}, remove LaTeX auxiliary files (.log, .aux, ...).'
else
FILENAME=$1
echo "\nConverting Rnw to tex.\n"
knit $FILENAME.Rnw
echo "\nConverting tex to PDF.\n"
pdflatex $FILENAME.tex
fi
if [ "$#" -eq 2 ]; then
if [ "$2" -eq 1 ]; then
echo "\nDeleting LaTeX auxiliary files.\n"
rubber --clean $FILENAME
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment