Omit alternative title from header

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
dbutch
Posts: 41
Joined: Wed Aug 14, 2019 9:16 am

Omit alternative title from header

Post by dbutch »

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: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: Omit alternative title from header

Post by julien_lacour »

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 »

Thanks Julien, problem solved.
julien_lacour
Posts: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: Omit alternative title from header

Post by julien_lacour »

Hello,

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

Regards,
Julien
Post Reply