1
0
mirror of https://github.com/becarpenter/book6.git synced 2024-05-07 02:54:53 +00:00
2024-04-08 16:47:35 +12:00

17 lines
831 B
Markdown

This folder `pdf` is used for generating a complete PDF file of book6 and is not otherwise interesting.
As of 2024-04-08 the contents of this folder are work-in-progress and not aimed at readers.
The image files are duplicated here intentionally.
The intermediate file `baked.md` is a complete markdown of the whole book, made by the `bakeBook.py` utility.
This is then manually converted using pandoc to a LaTeX file `baked.tex` by the command
```
pandoc baked.md -f gfm -t latex -s -o baked.tex -V colorlinks=true
```
Then comes the tricky bit. _Manually edit_ `baked.tex` with any text editor, changing all occurrences of `backslashpagebreak` to `\pagebreak`.
Then convert the LaTeX file to PDF. Good results on Windows are obtained using `TeXworks` or the command `pdflatex baked.tex` (the latter needs to be run twice).