1
0
mirror of https://github.com/becarpenter/book6.git synced 2024-05-07 02:54:53 +00:00

17 lines
961 B
Markdown
Raw Normal View History

This folder `pdf` is used for generating a complete PDF file of book6 and is not otherwise interesting.
2024-04-11 11:17:07 +12:00
As of 2024-04-11 the contents of this folder are work-in-progress and not aimed at readers.
2024-04-04 11:14:09 +13:00
The image files are duplicated here intentionally.
2024-04-11 11:17:07 +12:00
The intermediate file `baked.md` is a complete markdown of the whole book, made by the `bakeBook.py` utility. The utility also attempts to convert `baked.md` first to LaTeX as `baked.tex` and then to PDF as `baked.pdf`. If this fails, try the following manual process.
2024-04-08 16:47:35 +12:00
2024-04-11 11:17:07 +12:00
First convert to LaTeX using pandoc:
2024-04-08 16:47:35 +12:00
```
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`.
2024-04-11 11:17:07 +12:00
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 to satisfy references).