Skip to content

Commit b6630e0

Browse files
Added a doublespace command
1 parent 3203fde commit b6630e0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

scripts/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ js_path=$(realpath ../static/img_javascript/)
66

77
svgs: orig_svgs js_svgs
88

9+
doublespace:
10+
cd .. && ./scripts/do.sh doublespace
11+
912
orig_svgs: $(orig_path)/ch2-Z-G-65.svg.pdf \
1013
$(orig_path)/ch2-Z-G-59.svg.pdf \
1114
$(orig_path)/chip.std.svg.pdf \

scripts/do.sh

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ main() {
2626

2727
if [ "$1" == "pdf" ]; then
2828
pdf
29+
elif [ "$1" == "doublespace" ]; then
30+
doublespace
2931
elif [ "$1" == "clean" ]; then
3032
clean
3133
elif [ "$1" == "epub" ]; then
@@ -44,6 +46,14 @@ main() {
4446
fi
4547
}
4648

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+
4757
pdf() {
4858
yarn process pdf; yarn process pdf; \
4959
cd ${LATEX_PDF}; \

0 commit comments

Comments
 (0)