export: page breaks before h3 and more?

Reiner's Avatar

Reiner

21 Feb, 2018 11:25 AM

Hello Brad,

I was wondering how I could automatically export pdfs with page breaks before h3, h4s. In the preferences I can only select h1, h2 and this is usually enough. But this nested doc needs more structure when printed, alas a page break before h3. How would I do that?

Thank you very much,
Reiner

  1. Support Staff 1 Posted by Brett on 21 Feb, 2018 06:33 PM

    Brett's Avatar

    It's not an option within the preferences, but you can simply add the
    following to Preferences->Style->Additional CSS (click "Edit CSS" and
    paste):

    @media print {
       #wrapper h3 { page-break-after: always; }
    }

    I haven't tested that to be sure there are no conflicts, but it should
    work. If it doesn't, try adding !important like this:

    @media print {
       #wrapper h3 { page-break-after: always!important; }
    }

    -Brett

  2. 2 Posted by Reiner Gärtner on 22 Feb, 2018 09:20 AM

    Reiner Gärtner's Avatar

    Hello Brett,

    Thanks a lot. This works (1st version you mentioned!).

    Cheers,
    Reiner

    --

    # Bitte beachten Sie meine E-Mail-Öffnungszeiten um 10 und um 16 Uhr:
    http://rgae.de/oeffnungszeiten #

    Reiner Gärtner
    Editorial Services

    ph.: +49-7522-7019321
    [email blocked]
    www.reinergaertner.de

    Am 21. Februar 2018 um 19:33:41, Brett ([email blocked])
    schrieb:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac