captn3m0 / google-sre-ebook

Google SRE Book Generator (EPUB/MOBI/PDF).
Do What The F*ck You Want To Public License
1.24k stars 162 forks source link

Configurable font size in PDF #77

Closed pgillich closed 6 months ago

pgillich commented 7 months ago

It would be useful, if the font size can be configurable in exported PDF. The command line in generate.sh looks like:

pandoc --from=html \
(...)
    -V documentclass=extbook \
    -V fontsize=14pt \
    --columns=60 \
    complete.html

The font size can be an optional environment variable, like BOOK_SLUG.

Only a few font sizes are supported by extbook: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, and 20pt, see https://www.ctan.org/tex-archive/macros/latex/contrib/extsizes.

captn3m0 commented 7 months ago

Sounds good. Happy to accept PRs for this.

pgillich commented 7 months ago

Sounds good. Happy to accept PRs for this.

OK, I'll do it next days.