hiroshi-manabe / sicp-pdf

SICP PDF with Texinfo and LaTeX source
http://sicpebook.wordpress.com/
465 stars 17 forks source link

Unable to make pdf #29

Open OzelotVanilla opened 3 years ago

OzelotVanilla commented 3 years ago

TexLive version: 2020

System: Windows 10

Cannot use the Makefile file to make pdf. This is the error log, and I cannot fix it. (I changed my working dir name to dirs)

PS dirs\SICP-jac\src> make
latexmk -pdflatex="xelatex %O %S" -pdf -dvi- -ps- jsicp.tex
Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'xelatex S  -recorder  "jsicp.tex"'
------------
This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(dirs/texlive/2020/texmf-dist/tex/latex/tools/s.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06> File ignored
)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

<*> S -
       recorder jsicp.tex

*

This is changed Makefile, since the original one has option export-filename for inkscape, but it doesn't have this option anymore, I changed it to --export-pdf.

# Contributed by holomorph, 2013.
# Added to by Andres Raba, 2013-2015.

FIG := $(patsubst %.svg,%.pdf,$(wildcard fig/*/*.svg))

all: jsicp.pdf

jsicp.pdf: jsicp.tex exercises.tex figures.tex coverpage.pdf ${FIG}
    latexmk -pdflatex="xelatex %O %S" -pdf -dvi- -ps- $<

sicp.tex: sicp.texi preamble.tex postamble.tex 
    ./texi-to-latex.pl $<

exercises.tex figures.tex: ex-fig-ref.pl
    ./ex-fig-ref.pl -e > exercises.tex; \
    ./ex-fig-ref.pl -f > figures.tex

%.pdf: %.svg
    inkscape $(abspath $<) --export-area-page --export-pdf $(abspath $@)

clean:
    latexmk -CA

clean-all: clean
    ${RM} ${FIG} sicp.tex exercises.tex figures.tex coverpage.pdf

.PHONY: all clean clean-all
hiroshi-manabe commented 3 years ago

Thank you! Your changes are now reflected in the Makefile.

OzelotVanilla commented 3 years ago

Thank you for changing makefile. However the bug is still here - I cannot build my file. The log is here (with newest makefile):

latexmk -pdflatex="xelatex %O %S" -pdf -dvi- -ps- jsicp.tex
Latexmk: This is Latexmk, John Collins, 26 Dec. 2019, version: 4.67.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'jsicp.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'xelatex S  -recorder  "jsicp.tex"'
------------
This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(e:/Software/texlive/2020/texmf-dist/tex/latex/tools/s.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-03-06> File ignored
)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

<*> S -
       recorder jsicp.tex

*Terminating on signal SIGINT(2)

I am using Windows 10 with TexLive 2020 installed.

OzelotVanilla commented 3 years ago

By the way it is OK for you to use Japanese to chat (I can't say much but I can read it). Actually I want to folk this repo and make some improvement to the translation. I think it is hard to read while the term of computer has 漢字 and カタカナ at the same time.

hiroshi-manabe commented 3 years ago

よく読んでおらず、間違えてクローズしてしまいました。問題はそのまま残っているんですね。 なお、ビルドできない問題については、こちらで再現しないため対応が難しいです。 もし修正方法がわかればお伝えいただければと思います。