From: Benjamin Mako Hill Date: Thu, 9 Jan 2014 22:42:57 +0000 (-0800) Subject: added a perl script to clean out some common broken encoding stuff X-Git-Url: https://code.communitydata.science/cdsc_tex.git/commitdiff_plain/fc613f1b2616baa3771d8ced10d15cd45168e3dd?ds=inline added a perl script to clean out some common broken encoding stuff --- diff --git a/paper_template/Makefile b/paper_template/Makefile index b219b72..a831bb3 100644 --- a/paper_template/Makefile +++ b/paper_template/Makefile @@ -1,10 +1,12 @@ #!/usr/bin/make -all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) +#all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) +all: project_description.pdf references.pdf pdf: all %.pdf: %.tex perl -p -e 's/©//' refs.bib > refs-cleaned.bib + perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-cleaned.bib |sponge refs-cleaned.bib recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib rubber -fd $<