File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ js_path=$(realpath ../static/img_javascript/)
6
6
7
7
svgs : orig_svgs js_svgs
8
8
9
+ doublespace :
10
+ cd .. && ./scripts/do.sh doublespace
11
+
9
12
orig_svgs : $(orig_path ) /ch2-Z-G-65.svg.pdf \
10
13
$(orig_path)/ch2-Z-G-59.svg.pdf \
11
14
$(orig_path)/chip.std.svg.pdf \
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ main() {
26
26
27
27
if [ " $1 " == " pdf" ]; then
28
28
pdf
29
+ elif [ " $1 " == " doublespace" ]; then
30
+ doublespace
29
31
elif [ " $1 " == " clean" ]; then
30
32
clean
31
33
elif [ " $1 " == " epub" ]; then
@@ -44,6 +46,14 @@ main() {
44
46
fi
45
47
}
46
48
49
+ doublespace () {
50
+ yarn process pdf; yarn process pdf; \
51
+ cd ${LATEX_PDF} ; \
52
+ cp -f sicpjs.tex sicpjs_doublespace.tex; \
53
+ sed -i ' s/onehalfspacing/doublespacing/' ../latex_pdf/sicpjs_doublespace.tex; \
54
+ latexmk -silent -pdf -pdflatex=" pdflatex --synctex=1" -f ${OUTPUT_FILE} _doublespace
55
+ }
56
+
47
57
pdf () {
48
58
yarn process pdf; yarn process pdf; \
49
59
cd ${LATEX_PDF} ; \
You can’t perform that action at this time.
0 commit comments