for i in {1..43}
do
	pdflatex -jobname="Lecture$(($i+1))Typed" "\input{header.tex}\setcounter{lecno}{$i} \input{LectureXTyped.tex}"
	rm "Lecture$(($i+1))Typed.aux"
	rm "Lecture$(($i+1))Typed.log"
	rm "Lecture$(($i+1))Typed.out"
	mv "Lecture$(($i+1))Typed.pdf" "AllLectures"
done



SELF NOTE: Off by one in the for loop so make sure if you want lecture X you put the loop with X-1.

cd /Users/cbruni/Documents/Math135/2016-01/TypedNotes

Also, to run the HDC files, use

python hdcGenerator.py

then recompile the .tex