Page 1 of 1

L SEP in PDF (css/html5) bookmarks

Posted: Tue Jul 30, 2024 5:32 pm
by amyers3
I have a css style that moves the chapter number above the chapter title in our PDFs:

Code: Select all

*[class ~= "map/map"][numbering ^= "deep"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/title"]::before {
    content: "Chapter " counter(chapter) " " "\A\A";
    white-space: pre;
    font-size: 18px;
    font-weight: bold;
    display: block;
}
This does what I want, but it has a side effect of adding 2 "L SEP" images after the chapter number in our bookmarks (see attachment).
I'm hoping someone knows how to fix this. Thanks in adavance.
2024-07-30_8-28-50.jpg

Re: L SEP in PDF (css/html5) bookmarks

Posted: Wed Jul 31, 2024 10:38 am
by julien_lacour
Hi Adam,

You can simply replace the "\A" characters by a space created in a margin:

Code: Select all

*[class ~= "map/map"][numbering ^= "deep"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/title"]::before {
    content: "Chapter " counter(chapter) " ";
    white-space: pre;
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 54px;
}
Regards,
Julien

Re: L SEP in PDF (css/html5) bookmarks

Posted: Wed Jul 31, 2024 4:41 pm
by amyers3
Thank you, Julien! That works great.