A book with views may be somewhat difficult to print. One idea is to print several books, one for each view. The format for printing can be chosen as pdf. I tried this, for the book Into Programming, by generating pdf from LaTeX, one pdf for each view (C, Java, Python).
The formatting was done using tufte-latex, which produces a rather nice layout, using typesetting inspired by the works of Edward Tufte.
You can see the results using the links in the list below. Note that these are works-in-progress, i.e. the book contents are added incrementally, at the same time as I try to figure out how to produce the actual books (web-version, epub- and mobi-versions, and now also pdf):
- Into Programming (pdf – C view)
- Into Programming (pdf – Java view)
- Into Programming (pdf – Python view)
Links to web-version and e-book versions are found on the Books page.