hmemcpy / milewski-ctfp-pdf

Bartosz Milewski's 'Category Theory for Programmers' unofficial PDF and LaTeX source
https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/
Other
11k stars 592 forks source link

Create two PDFs - one sided (for eReaders) and two-sided (for printing) #100

Closed hmemcpy closed 6 years ago

hmemcpy commented 6 years ago

Some hints on how to do this in latex:

https://tex.stackexchange.com/questions/300252/generate-oneside-and-twoside-version-at-the-same-time https://tex.stackexchange.com/questions/220091/conditional-compilation-of-documents-using-command-line-options-for-pdflatex

mseri commented 6 years ago

I think it would make sense to split the preamble and take out the geometry information, than we could have different pre-preambles with the right margins, geometry and font sizes for print and epub, and compile both separately. It could also include a pdfbook parsed version for people that want to print it in booklet form.

hmemcpy commented 6 years ago

Yeah, the preamble is way too big as it is... I trimmed it down, but there are still things that make the PDF beautiful :) It is based on this SICP PDF's preamble. Any refactoring work there would be welcomed!

hmemcpy commented 6 years ago

This is now done! The make file creates both versions!