17
0
cdsc_tex/paper_template/Makefile
Benjamin Mako Hill d449d749d8 a series of updates to the mako-mem template
- Padded right/left margins to decrease line length based on research into
  general typographic standards.
- Shrunk linespacing to decrease line-spacing to bring this in line with
  general typographic standards.
- Added comments explaining the changes and basic typographic decisions.
- Renamed some variables to make it more clear about the relationships between
  pagestyles.
- Added the vc-git and vc-awk scripts into the repository so folks don't have
  to go hunting for them.
- Made VC stuff generated by default in Makefile.
- Increased the amount of sample text so we can actually see the effects on
  full pages of text.
2015-12-29 13:21:14 -08:00

36 lines
771 B
Makefile

#!/usr/bin/make
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
# use the following section for Rnw/knitr documents
# all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
# %.tex: %.Rnw
# Rscript -e "library(knitr); knit('$<')"
refs-processed.bib:
perl -p -e 's/©//' refs.bib > refs-processed.bib
perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-processed.bib |sponge refs-processed.bib
recode -d u8..ltex < refs-processed.bib | sponge refs-processed.bib
%.pdf: %.tex refs-processed.bib vc
latexmk -f -pdf $<
clean:
latexmk -C *.tex
rm -f *.tmp
rm -f vc
rm -f refs-processed.bib
# the following lines are useful for Rnw/knitr
# rm -rf cache/ figure/
# rm -f *.tex
viewpdf: all
evince *.pdf
vc:
resources/vc-git
pdf: all
.PHONY: clean all