Skip to content
Snippets Groups Projects
Commit 8904b646 authored by Laros's avatar Laros
Browse files

Added beamer handout target.

parent 958e0fcf
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ PIC := $(foreach I, $(PIC_EXT), $(basename $(shell ls *.$I)))
PDF := $(addsuffix .pdf, $(SRC))
RTF := $(addsuffix .rtf, $(SRC))
DOC := $(addsuffix .docx, $(SRC))
HDT := $(addsuffix _handout.pdf, $(SRC))
# Temporary files.
TMP := blg log nav out snm toc dvi aux idx vrb ps glg glo ist
......@@ -66,11 +67,13 @@ rtf: $(RTF)
doc: $(DOC)
handout: $(HDT)
clean:
rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(PNG) $(TNP)
rm -f $(foreach I, $(TMP), $(addsuffix .$I, $(SRC))) $(foreach I, $(TMP), $(addsuffix _handout.$I, $(SRC))) $(PNG) $(TNP)
distclean: clean
rm -f $(PDF) $(RTF) $(DOC) $(BIB) $(EPS) $(TEX_T)
rm -f $(PDF) $(RTF) $(DOC) $(HDT) $(BIB) $(EPS) $(TEX_T)
release: all clean
......@@ -205,3 +208,6 @@ release: all clean
%.docx: %.rtf
$(LIBREOFFICE) --headless --invisible --convert-to docx $< -o $@
%_handout.tex: %.tex
sed 's/^\\documentclass\[/\\documentclass\[handout, /' $< > $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment