From: Jeremy Foote Date: Thu, 30 Aug 2018 20:45:19 +0000 (-0500) Subject: Changing to Rtex X-Git-Url: https://code.communitydata.science/cdsc_tex.git/commitdiff_plain/refs/heads/knitr Changing to Rtex --- diff --git a/new_knitr_document b/new_knitr_document index 9766b5f..73c1a6a 100755 --- a/new_knitr_document +++ b/new_knitr_document @@ -16,7 +16,7 @@ then # get rid of paper_template subdir mv "$TMPDIR" "$1" cd "$1"; - mv "text.Rnw" "$1.Rnw" + mv "text.Rtex" "$1.Rtex" else echo "specifiy a directory where the template should go"; fi diff --git a/paper_template/Makefile b/paper_template/Makefile index d7e6678..595c370 100644 --- a/paper_template/Makefile +++ b/paper_template/Makefile @@ -1,10 +1,8 @@ #!/usr/bin/make -all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw)) +all: $(patsubst %.Rtex,%.pdf,$(wildcard *.Rtex)) -# use the following section for Rnw/knitr documents -# all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw)) -%.tex: %.Rnw +%.tex: %.Rtex Rscript -e "library(knitr); knit('$<')" %.pdf: %.tex @@ -15,7 +13,7 @@ clean: rm -f *.tmp *.run.xml rm -f vc rm -f *.bbl - # the following lines are useful for Rnw/knitr + # the following lines are useful for Rtex/knitr rm -rf cache/ figure/ rm -f *.tex diff --git a/paper_template/text.Rnw b/paper_template/text.Rtex similarity index 100% rename from paper_template/text.Rnw rename to paper_template/text.Rtex