Skip to content

Commit f9cf4cb

Browse files
committed
modify makefile in tex-zh, make it right for creating pdf
1 parent 3bd0cb6 commit f9cf4cb

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

thinkpython/tex-zh/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \
1717
ps2pdf $(PDFFLAGS) $<
1818

1919
all: book.tex
20-
xetex book
20+
xelatex book
2121
makeindex book
22-
xetex book
23-
dvips -t letter -Ppdf -o thinkpython.ps book
22+
xelatex book
23+
# dvips -t letter -Ppdf -o thinkpython.ps book
2424
# dvips -T 6.75in,9.25in -Ppdf -o thinkpython.ps book
2525
# dvips -t b5 -Ppdf -o thinkpython.ps book
2626
# dvips -T 7in,10in -Ppdf -o thinkpython.ps book
27-
gv thinkpython.ps
27+
# gv thinkpython.ps
2828

2929
html: book.tex header.html footer.html
3030
rm -rf html

thinkpython/tex-zh/book.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
%
1616

1717
\documentclass[10pt]{book}
18-
\usepackage[width=5.5in,height=8.5in,
19-
hmarginratio=3:2,vmarginratio=1:1]{geometry} %指定了{h,v}marginratio,width和height被忽略了,可以不用指定(参考geometry.pdf, $texdoc geometry.pdf)。
18+
\usepackage[width=5.5in,height=8.5in,hmarginratio=3:2,vmarginratio=1:1]{geometry} %指定了{h,v}marginratio,width和height被忽略了,可以不用指定(参考geometry.pdf, $texdoc geometry.pdf)。
2019

2120
%下面的这些包,你可能需要安装texlive-latex-extra(in Debian/Ubuntu)
2221
\usepackage{pslatex} %

0 commit comments

Comments
 (0)