Changing to Rtex
This commit is contained in:
parent
54c07cb9f5
commit
ee4ba6c2b4
@ -16,7 +16,7 @@ then
|
|||||||
# get rid of paper_template subdir
|
# get rid of paper_template subdir
|
||||||
mv "$TMPDIR" "$1"
|
mv "$TMPDIR" "$1"
|
||||||
cd "$1";
|
cd "$1";
|
||||||
mv "text.Rnw" "$1.Rnw"
|
mv "text.Rtex" "$1.Rtex"
|
||||||
else
|
else
|
||||||
echo "specifiy a directory where the template should go";
|
echo "specifiy a directory where the template should go";
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -1,10 +1,8 @@
|
|||||||
#!/usr/bin/make
|
#!/usr/bin/make
|
||||||
|
|
||||||
all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
|
all: $(patsubst %.Rtex,%.pdf,$(wildcard *.Rtex))
|
||||||
|
|
||||||
# use the following section for Rnw/knitr documents
|
%.tex: %.Rtex
|
||||||
# all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
|
|
||||||
%.tex: %.Rnw
|
|
||||||
Rscript -e "library(knitr); knit('$<')"
|
Rscript -e "library(knitr); knit('$<')"
|
||||||
|
|
||||||
%.pdf: %.tex
|
%.pdf: %.tex
|
||||||
@ -15,7 +13,7 @@ clean:
|
|||||||
rm -f *.tmp *.run.xml
|
rm -f *.tmp *.run.xml
|
||||||
rm -f vc
|
rm -f vc
|
||||||
rm -f *.bbl
|
rm -f *.bbl
|
||||||
# the following lines are useful for Rnw/knitr
|
# the following lines are useful for Rtex/knitr
|
||||||
rm -rf cache/ figure/
|
rm -rf cache/ figure/
|
||||||
rm -f *.tex
|
rm -f *.tex
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user