More work on presentation + improves auto images
Added more slides Auto graphics now work for xkcd and ansi shell output
This commit is contained in:
parent
b128151e39
commit
2712cddb60
5 changed files with 283 additions and 19 deletions
19
Makefile
19
Makefile
|
@ -1,22 +1,29 @@
|
|||
XKCD_FILES = $(shell bin/xkcd-filenames)
|
||||
GRAPHICS_FILES = $(shell bin/get-auto-graphics)
|
||||
|
||||
main.pdf: main.latex $(XKCD_FILES)
|
||||
pdflatex -output-directory="./" main.latex
|
||||
main.pdf: main.latex $(GRAPHICS_FILES)
|
||||
pdflatex -shell-escape -output-directory="./" main.latex
|
||||
|
||||
with-notes.pdf: with-notes.latex
|
||||
pdflatex -output-directory="./" with-notes.latex
|
||||
pdflatex -shell-escape -output-directory="./" with-notes.latex
|
||||
|
||||
with-notes.latex: main.latex $(XKCD_FILES)
|
||||
with-notes.latex: main.latex $(GRAPHICS_FILES)
|
||||
sed 's/\%showNotes\%//' main.latex > with-notes.latex
|
||||
|
||||
clean:
|
||||
rm *.aux *.log *.out *.toc *.nav *.snm *.pdf
|
||||
rm *.aux *.log *.out *.toc *.nav *.snm *.pdf *.vrb
|
||||
rm with-notes.latex
|
||||
|
||||
auto-images/auto-xkcd-%.png:
|
||||
mkdir -p auto-images
|
||||
curl https://xkcd.com/$*/info.0.json 2> /dev/null | jq '.img' | sed 's/.png/_2x.png/g' | xargs curl -s -o $@
|
||||
|
||||
auto-images/auto-shell-%.pdf: auto-images/auto-shell-%.svg
|
||||
inkscape auto-images/auto-shell-$*.svg --export-area-drawing --batch-process --export-type=pdf --export-filename=$@
|
||||
|
||||
auto-images/auto-shell-%.svg: shell-output/%.out
|
||||
mkdir -p auto-images
|
||||
cat shell-output/$*.out | bin/ansi2svg > $@
|
||||
|
||||
clean-images:
|
||||
rm -rf auto-images/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue