Omit alternative title from header

dbutch
Posts: 41
Joined: Wed Aug 14, 2019 9:16 am

Omit alternative title from header

Post by dbutch » Fri Dec 13, 2019 5:29 am

Hi,

Is there a way to omit <booktitlealt> (alternative title/subtitle) from a header, and only show the <mainbooktitle> (primary title)?

At present I have both of them showing in the header together using:

Code: Select all

@page :left:right, chapter:first:left:right{
    @top-center {
        content: string(maptitle)!important;
        color: black;
        border-bottom: 0.75pt solid red;
        vertical-align: bottom;
  }
However, I would like to use the <booktitlealt> for the front page of the pdf only - not in the header.

Thanks.

julien_lacour
Posts: 84
Joined: Wed Oct 16, 2019 3:47 pm

Re: Omit alternative title from header

Post by julien_lacour » Fri Dec 13, 2019 4:30 pm

Hello,

This was a bug on our side, as a workaround could you use the following CSS:

Code: Select all

*[class ~= "front-page/front-page-title"] > *[class ~= "topic/title"]{
    string-set: none;
}

*[class ~= "front-page/front-page-title"] *[class ~= "bookmap/mainbooktitle"] {
    string-set: maptitle content();
}
Regards,
Julien

dbutch
Posts: 41
Joined: Wed Aug 14, 2019 9:16 am

Re: Omit alternative title from header

Post by dbutch » Mon Dec 16, 2019 6:50 am

Thanks Julien, problem solved.

julien_lacour
Posts: 84
Joined: Wed Oct 16, 2019 3:47 pm

Re: Omit alternative title from header

Post by julien_lacour » Wed Feb 19, 2020 3:10 pm

Hello,

Please note that starting with Oxygen 22 the workaround isn't needed anymore.

Regards,
Julien

Post Reply