Page 1 of 1

Omit alternative title from header

Posted: Fri Dec 13, 2019 5:29 am
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.

Re: Omit alternative title from header

Posted: Fri Dec 13, 2019 4:30 pm
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

Re: Omit alternative title from header

Posted: Mon Dec 16, 2019 6:50 am
by dbutch
Thanks Julien, problem solved.

Re: Omit alternative title from header

Posted: Wed Feb 19, 2020 3:10 pm
by julien_lacour
Hello,

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

Regards,
Julien