/* Print layout for PDFs from epub2md output via Pandoc + weasyprint: pandoc buch.md -s --lua-filter pandoc/book.lua --lua-filter pandoc/callouts.lua --css pandoc/print.css \ --pdf-engine=weasyprint -o buch.pdf book.lua places the table of contents after cover, title page and imprint and marks chapter starts. */ @page { size: A4; margin: 2cm 1.8cm; @bottom-center { content: counter(page); font-size: 9pt; } } @page :first { @bottom-center { content: none; } } /* no page number on the cover / title page */ body { max-width: none; font-size: 10.5pt; line-height: 1.4; hyphens: auto; text-align: justify; font-family: "DejaVu Serif", "Liberation Serif", Georgia, serif; } #title-block-header, #title-block-header h1.title { text-align: center; margin-bottom: 2em; } h1, h2, h3, h4 { text-align: left; hyphens: manual; page-break-after: avoid; } pre, code { font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; hyphens: none; } pre { background: #f6f8fa; padding: 0.5em 0.8em; border-radius: 0.3em; page-break-inside: auto; } pre, pre code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 8.5pt; } /* long code lines wrap */ pre { overflow: visible; } blockquote { margin: 1em 0 1em 1.5em; padding-left: 0.8em; border-left: 2px solid #ccc; color: #444; } a { color: inherit; text-decoration: none; } img { max-width: 100%; max-height: 24cm; height: auto; } table { font-size: 9pt; } .cover { text-align: center; } .cover img { max-height: 25cm; } /* New pages: every chapter (book.lua: div.chapter-start, also cover, title page, imprint), the title block, the table of contents; without book.lua every