Page 1 of 1

glossentry xrefs in PDF include page number

Posted: Wed May 15, 2019 7:14 pm
by amyers3
Hi,

I want to remove the page number from my glossentry xrefs. I am using the Editor 21 PDF html/css transformation.

The *merged.html file has the following:

<a class="- topic/xref xref" href="#unique_9" type="glossentry">term</a>

The PDF has:

term (page 396)

I want the PDF to show:

term

Is there any easy way to do this with my custom css file?

Re: glossentry xrefs in PDF include page number

Posted: Thu May 16, 2019 9:10 am
by Dan
Hello Adam,

Please use:

Code: Select all

*[class ~= "topic/xref"][href]:after,
*[class ~= "topic/link"][href]:after {
    content: none !important;
}
The documentation about link styling is here https://www.oxygenxml.com/doc/ug-pdf-cs ... dcpp_links
In the current documentation the !important qualifier is missing.

Many regards,
Dan

Re: glossentry xrefs in PDF include page number

Posted: Thu May 16, 2019 6:02 pm
by amyers3
Thanks for the quick reply, Dan.

I tweaked it a bit so that the page number is only removed from the glossary xref and everything looks good.

Code: Select all

*[class ~= "topic/xref"][href][type="glossentry"]:after {
    content: none !important;
}
Thanks,

Adam