captn3m0 / google-sre-ebook

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

Configurable font size in PDF #77

Closed pgillich closed 8 months ago

pgillich commented 8 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 8 months ago

Sounds good. Happy to accept PRs for this.

pgillich commented 8 months ago

Sounds good. Happy to accept PRs for this.

OK, I'll do it next days.