Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier
Peer-graded student exercises
Commits
0d626422
Commit
0d626422
authored
May 04, 2019
by
Olivier
Browse files
M3: also compile solutions
parent
797d149c
Changes
1
Hide whitespace changes
Inline
Side-by-side
M3_generate_assignments/create_pdfs.sh
View file @
0d626422
...
...
@@ -34,9 +34,32 @@ for assignmentfile in assignment*.tex; do
mv
-vf
*
.aux
*
.bbl
*
.bcf
*
.blg
*
.ilg
*
.log
*
.nav
*
.nlo
*
.nls
*
.run.xml
*
.snm
*
.toc
*
.out
*
.fls
*
.fdb_latexmk
*
.spl
*
-blx
.bib
*
-eps-converted-to
.pdf
*
bib.bak tmp/
done
for
solutionfile
in
graded_solution
*
.tex
;
do
echo
"#"
echo
"#"
echo
"building solution PDF for
$solutionfile
…"
# Empty up the tmp subfolder, if it exists
rm
-rvf
tmp/
*
# Make a tmp folder
mkdir
-pv
tmp
# Compile the actual PDF file:
pdflatex
$solutionfile
pdflatex
$solutionfile
# Cleanup after pdflatex: move temporary files to tmp subfolder
mv
-vf
*
.aux
*
.bbl
*
.bcf
*
.blg
*
.ilg
*
.log
*
.nav
*
.nlo
*
.nls
*
.run.xml
*
.snm
*
.toc
*
.out
*
.fls
*
.fdb_latexmk
*
.spl
*
-blx
.bib
*
-eps-converted-to
.pdf
*
bib.bak tmp/
done
cd
../
# Remove tex
file
s from output folder
# Remove tex
and tmp files/folder
s from output folder
rm
-vf
$outputfolder
/
*
.tex
rm
-vf
$outputfolder
/
*
.png
rm
-vrf
$outputfolder
/tmp
echo
"end of script."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment