--input-encoding=utf-8 --output-encoding=utf-8 \
--overlaybullets= \
--theme $(R2BTHEME)
-R2BFILTER := sed '/\\usepackage\[scaled=\.90\]{helvet}/d'
+R2BFILTER := sed '/\\usepackage\[scaled=\.90\]{helvet}/d; \
+ s/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8x]{inputenc}/'
DOT := dot
DOTFLAGS :=
.PHONY: all
all: $(targets)
-presentacion.pdf: $O/presentacion.tex $(imgs)
+%.pdf: $O/%.tex
$(if $V,@echo "$(PDFLATEX) $< > $@")
$V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) $(if $V,> $@.log)
$V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) $(if $V,>> $@.log)
$V mv $O/$@ $@
-notas.pdf: $O/notas.tex
- $(if $V,@echo "$(PDFLATEX) $< > $@")
- $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) $(if $V,> $@.log)
- $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) $(if $V,>> $@.log)
- $V mv $O/$@ $@
+presentacion.pdf: $(imgs)
-$O/presentacion.tex: presentacion.rst $(R2B)
+$O/%.tex: %.rst $(R2B)
$(if $V,@echo "$(R2B) $< > $@")
$V $(R2B) $(R2BFLAGS) $< | $(R2BFILTER) > $@
-$O/notas.tex: presentacion.rst $(R2B)
- $(if $V,@echo "$(R2B) $< > $@")
- $V $(R2B) $(R2BFLAGS) --shownotes=only $< | $(R2BFILTER) > $@
+$O/notas.tex: R2BFLAGS += --shownotes=only
$O/img/%.pdf: img/%.dot
$(DOT) $(DOTFLAGS) -Tpdf -o $@ $<