]> code.communitydata.science - cdsc_tex.git/commitdiff
Changing to Rtex knitr
authorJeremy Foote <jdfoote1@gmail.com>
Thu, 30 Aug 2018 20:45:19 +0000 (15:45 -0500)
committerJeremy Foote <jdfoote1@gmail.com>
Thu, 30 Aug 2018 20:45:19 +0000 (15:45 -0500)
new_knitr_document
paper_template/Makefile
paper_template/text.Rtex [moved from paper_template/text.Rnw with 100% similarity]

index 9766b5fcca084a850eb1bf9eba5493c053588233..73c1a6acf86485c40c56c0fae50bad18c15576c2 100755 (executable)
@@ -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
index d7e66787a590c04afec660cccd987cfe48bd9a4b..595c370ae4723ea4450a7e2afae61bee80947757 100644 (file)
@@ -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
 

Community Data Science Collective || Want to submit a patch?