sarabander / sicp-pdf Goto Github PK
View Code? Open in Web Editor NEWSICP PDF with Texinfo and LaTeX source
Home Page: http://sicpebook.wordpress.com/
SICP PDF with Texinfo and LaTeX source
Home Page: http://sicpebook.wordpress.com/
Direct link: sicp.pdf is not useable, and even if I download the entire zip, the pdf in it is only 1kb and cannot be opened.
In the exercise 2.36 the name accumulate
is spelled as accumu-late
(with extra dash).
(Posted in error)
in the fig/ch1 directory, there is not a Fig1.2e.[pdf,svg] file
Should be
(car ''abracadabra) ;; two single quotes
instead of
(car "abracadabra) ;; one double quote
First off, thanks for making this fantastic book available for free! However, I found a problem.
The PDF version has a blank page where printed page 48 should be (this is page 76 as far as the PDF file goes). Page 47 starts section 1.2.2, then there's a blank page, then page 49 starts with figure 1.5, and then the continuation of a paragraph that is evidently missing.
Any ideas? Thanks again.
I use XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/Arch Linux) to compile the latest sicp.tex with ./texi-to-latex.pl sicp.texi ; xelatex sicp.tex
. There is an error:
Overfull \hbox (8.2933pt too wide) in paragraph at lines 20689--20696
[]\EU1/LinuxBiolinumO(0)/bx/n/10.95 Exercise 3.73: \EU1/LinuxLibertineO(0)/m/n/
10.95 We can model electrical circuits using streams
! LaTeX Error: Too many unprocessed floats.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.20697 \begin{figure}[tb]
The PDF file is around 3 years old now, it needs to be updated, and pretty neat job on the book :D
s/suppport/support/
Hello, I really appreciate this project and am in awe of the beautiful results.
While I gather that the focus of this project is mobile reading, I would also like a PDF that is good for printing. The current PDF is not great for that: too little content to a page.
Is it possible to provide another PDF file with a different page size and whatever other typographical choices need to be made to get a nice result?
Thanks for considering.
The sicp.pdf download link in the README redirects to https://raw.githubusercontent.com/sarabander/sicp-pdf/master/sicp.pdf, which has the content:
version https://git-lfs.github.com/spec/v1
oid sha256:08709a87567d8311d6fd29c4f4a5386801153e71450e628c4a5a5d7e85feda8b
size 7416886
instead of the actual PDF.
It looked like the PDF requires fetching using git lfs. So I tried to do it locally. I cloned the repo, and (with git lfs installed) I ran:
git lfs pull
The output was:
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/sarabander/sicp-pdf.git/info/lfs'
I'm getting the following error when executing make
:
!
! fontspec error: "font-not-found"
!
! The font "Inconsolata LGC" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.20 \setmonofont{Inconsolata LGC}
I am using OS X 10.9 with MacTex. Is MacTex missing some dependencies?
For example you cannot search for the word "dotted" as in a dotted pair.
For example, on page 645, the words "dotted tails" are overlayed with doed tails.
Note the unicode ligature.
On page 611:
"All of the company’s em-
ployees aend this meeting."
Note the ligature again.
The ft ligature is also commonly wrongly overlayed, as in page 633 "After Louis types this"
In the exercise 2.49d, the student is asked to replicate the "wave" painter using a "draw-line" primitive.
Though it IS possible using the paper version of the book (because the wave painter is built up from straight segments), it is not possible in the pdf version, because the wave painter is unrelated.
Ideally there wouldn't be any generated pdfs in the repo, but TeX/inkscape are quite a bundle of dependencies so having the pdfs makes some sense.
In any case, having a build system would be convenient. I wrote a src/Makefile
to build the book:
FIG := $(patsubst %.svg,%.pdf,$(wildcard *.svg fig/*/*.svg))
all: sicp.pdf
sicp.pdf: sicp.tex ${FIG}
latexmk -xelatex $<
sicp.tex: sicp.texi
./texi-to-latex.pl $<
%.pdf: %.svg
inkscape -f $< -D -A $@
clean:
latexmk -CA
clean-all: clean
${RM} ${FIG}
.PHONY: all clean clean-all
could you please add one? :-)
on written page 331 (pdf page 359), a code example from the previous page (330) breaks across the page break. At the top of page 331, there is a figure, which includes code. The last few lines of the text code are separated by the figure code, and it is difficult to read.
Is the answer possibly in disallowing blocks of code to be broken across pages? Or prevent figures from being inserted into blocks of code?
Screen shot below shows the bottom of page 330 and the top of page 331, including the figure 3.6, and the in-text code split around it. There is also a footnote on page 330, further complicating the read.
The definition of make-withdraw
spans the bottom of page 330 and 331, and is interrupted by footnote 14 AND Figure 3.6.
The word delay is highlighted as is it is a special word (i.e. a function).
It is in the scheme standard, in the delay/force lazy evaluation pair. However, it is not in this chapter. Therefore this highlighting is wrong.
The microtype
package (https://ctan.org/tex-archive/macros/latex/contrib/microtype) implements microtypographical optimizations that can make the body of the text look more professional and easier to read. However, most of these optimizations require LuaLaTeX instead of XeTeX. We still keep fontspec and all.
this repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
Hi,
First of all, thanks a lot for doing this. The pdf version is elegant and convenient and allows me to read the book even when I don't have internet access. Kudos to you guys.
I am just wondering whether it is possible for you to also do the later python version of SICP, available at the following link, in the reading column:
http://www-inst.eecs.berkeley.edu/~cs61a/fa11/61a-python/content/www/index.html#resources
I have no experience whatsoever with transforming an html format book into pdf so I can't even assess how much work this is. If it turns out to be really time consuming or something please just let me know.
Thanks!
Hi.
It seems like the PDF lacks the number 0 in Exercise 1.6 where Eva Lu Ator's 2nd demonstlation.
(new-if (= 1 1) 0 5)
0 <- This 0 disappeared.
sicp.texi has no problem. But sicp.tex has this problem.
I think Perl script removes 0
Original text is here.
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_thm_1.6
And since it's not automatically built somewhere, could someone ascertain it's up to date?
Thank you :bows:
In this book there are something that look like this:
< exp >
It seems that They are typeset as math formulas, for which TeX uses math italic. However, as the TeXbook points out, text italics should be used for identifiers more than one letter long. In this case I agree with Knuth, and the math italics makes the letters "e" "x" and "p" too apart and look like three individual letters, which is ugly.
Also, most of the codes in this books are Scheme codes, but some are English text. In this case, the typesetting program shouldn't highlight the keywords. It's strange to look at an English sentence which has most of the words in grey but an "and" bold and highlighted in blue.
The URL replacement symbols in the References section are built from an en dash and a single guillemet (–›), most likely trying to mimic an arrow. They should probably be replaced by an actual arrow or some other symbol.
Is it possible to create a Japanese version, or better yet a line-by-line Japnese-English bilingual version of SICP?
Here is the translation https://sicp.iijlab.net/fulltext/xcont.html
Here the error :
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 fxlr-8r
[32mktexpk: don't know how to create bitmap font for fxlr-8r.
With Inkscape 1.0, build fails with:
./texi-to-latex.pl sicp.texi
Processing... (may take several minutes)
Done.
./ex-fig-ref.pl -e > exercises.tex; \
./ex-fig-ref.pl -f > figures.tex
inkscape -f /home/fred/sicp-pdf/src/coverpage.svg -C -A /home/fred/sicp-pdf/src/coverpage.pdf
Unknown option -f
make: *** [Makefile:21: coverpage.pdf] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.