THIS_DIR = $(shell basename $(PWD))
-HOMEWORK_NUMBER = $(THIS_DIR:hwk%=%)
+RECITATION_NUMBER = $(THIS_DIR:rec%=%)
SOURCE_FILES = all_problems.tex probs.tex sols.tex problem[0-9].tex
OTHER_FILES = Makefile
DIST_FILES = $(SOURCE_FILES) $(OTHER_FILES)
DIST_FILE = $(THIS_DIR)_source.tar.gz
-DIST_DIR = hwk
+DIST_DIR = rec
all : sols.pdf probs.pdf
%.pdf : %.tex $(SOURCE_FILES)
pdflatex $(patsubst %.tex,%,$<)
- asy $(patsubst %.tex,%,$<)
+ asy -noprc -render=0 $(patsubst %.tex,%-*.asy,$<)
pdflatex $(patsubst %.tex,%,$<)
semi-clean :
- rm -f rm -f *.log *.aux *.out *.thm *.toc *.pre *_[0-9]_.tex *.asy
+ rm -f *.log *.aux *.out *.thm *.toc *.pre *-[0-9].tex *.js *.prc *.asy
clean : semi-clean
rm -f *.pdf $(DIST_FILE) $(DIST_DIR) install*
install : install-probs install-solns
install-probs : probs.pdf
- scp -p $< $(INSTALL_USER)@$(INSTALL_HOST):$(INSTALL_DIR)/hwk$(HOMEWORK_NUMBER)_problems.pdf
+ scp -p $< $(INSTALL_USER)@$(INSTALL_HOST):$(INSTALL_DIR)/rec$(RECITATION_NUMBER)_problems.pdf
@date > $@
install-solns : sols.pdf $(DIST_FILE)
- scp -p $< $(INSTALL_USER)@$(INSTALL_HOST):$(INSTALL_DIR)/hwk$(HOMEWORK_NUMBER)_solutions.pdf
+ scp -p $< $(INSTALL_USER)@$(INSTALL_HOST):$(INSTALL_DIR)/rec$(RECITATION_NUMBER)_solutions.pdf
scp -p $(DIST_FILE) $(INSTALL_USER)@$(INSTALL_HOST):$(SOURCE_DIR)
@date > $@
label("$\rho_a$", (0,2.5u,0));
label("$\rho_c$", (0,-2.5u,0));
-draw((0,-1u,0)--(0,1u,0), Arrow);
+draw((0,-1u,0)--(0,1u,0), Arrow3);
label("$I$", (0, 1u,0), E);
label("$A$", (0, -5.5u, 0));
draw((0,-5u,-u)--(0,-5u,u));
label("$d$", (0, -4.9u /*hack*/, 0), W);
-draw((0,-5u,-1.1u)--(0,0,-1.1u), Arrows);
+draw((0,-5u,-1.1u)--(0,0,-1.1u), Arrows3);
label("$l$, $R_c$, $V_c$", (0, -2.5u,-1.1u), S);
-draw((0,5u,-1.1u)--(0,0,-1.1u), Arrows);
+draw((0,5u,-1.1u)--(0,0,-1.1u), Arrows3);
label("$l$, $R_a$, $V_a$", (0, 2.5u,-1.1u), S);
-draw((0,-5u,1.1u)--(0,5u,1.1u), Arrows);
+draw((0,-5u,1.1u)--(0,5u,1.1u), Arrows3);
label("$R_T$, $V_T$", (0, 0,1.1u), N);
%.pdf : %.tex $(SOURCE_FILES)
pdflatex $(patsubst %.tex,%,$<)
- asy $(patsubst %.tex,%,$<)
+ asy -noprc -render=0 $(patsubst %.tex,%-*.asy,$<)
pdflatex $(patsubst %.tex,%,$<)
semi-clean :
- rm -f *.log *.aux *.out *.thm *.toc *.pre *_[0-9]_.tex *.asy
+ rm -f *.log *.aux *.out *.thm *.toc *.pre *-[0-9].tex *.js *.prc *.asy
clean : semi-clean
rm -f *.pdf $(DIST_FILE) $(DIST_DIR) install*