L SEP in PDF (css/html5) bookmarks

Post here questions and problems related to editing and publishing DITA content.
amyers3
Posts: 30
Joined: Sat Feb 16, 2019 8:43 pm

L SEP in PDF (css/html5) bookmarks

Post 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
2024-07-30_8-28-50.jpg (5.35 KiB) Viewed 407 times
Adam Myers
Technical Publications Manager
MATRIXX Software
julien_lacour
Posts: 559
Joined: Wed Oct 16, 2019 3:47 pm

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

Post 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
amyers3
Posts: 30
Joined: Sat Feb 16, 2019 8:43 pm

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

Post by amyers3 »

Thank you, Julien! That works great.
Adam Myers
Technical Publications Manager
MATRIXX Software
Post Reply