From ee4ba6c2b4a7350c744d7b760ec730c93f5694c6 Mon Sep 17 00:00:00 2001 From: Jeremy Foote Date: Thu, 30 Aug 2018 15:45:19 -0500 Subject: [PATCH] Changing to Rtex --- new_knitr_document | 2 +- paper_template/Makefile | 8 +++----- paper_template/{text.Rnw => text.Rtex} | 0 3 files changed, 4 insertions(+), 6 deletions(-) rename paper_template/{text.Rnw => text.Rtex} (100%) 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 -- 2.39.2