Page 1 of 1

styling change tracking in the DITA CSS/PDF transformation

Posted: Wed Feb 12, 2025 9:35 pm
by gszabo
Hello,
I'm trying to style how changes are displayed in DITA CSS/PDF transformations, and have read the related, and helpful, online help topic (https://www.oxygenxml.com/doc/versions/ ... cking.html)

However, I cannot see how to style the squares that link to the topics. These are the reddish and pinkish squares rendered on top of revised content. (
Pages from test_bookmap.zip
For example, the square on top of the curly brace in the last paragraph of the attached)

I've tried various customizations of the selectors in p-side-notes.css, but have not found a selector that styles the square boxes. So, how do i style those?

Here's info on the parameters used for rendering:
I'm using Chemistry as the css processor and have set the related rendering parameters as follows:
show.changes.and.comments = yes
show.changes.and.comments.as.changebars = yes
show.changes.and.comments.as.pdf.sticky.notes = yes

Thanks for your attention to this.

Regards,
George

Re: styling change tracking in the DITA CSS/PDF transformation

Posted: Thu Feb 13, 2025 11:22 am
by julien_lacour
Hello George,

Could you confirm that the "squares that link to the topics" are the annotations that appear over the modifications:
image.png
If yes, these colors can't currently be changed using a custom CSS rule. How would you like the output to look like?
A workaround could be to display the modifications as footnotes by setting the show.changes.and.comments.as.pdf.sticky.notes parameter to "no".

Regards,
Julien

Re: styling change tracking in the DITA CSS/PDF transformation

Posted: Tue Feb 18, 2025 10:23 pm
by gszabo
Hi Julien,

Thanks for the response. Yes, those "squares" represent the annotations.

Re: styling change tracking in the DITA CSS/PDF transformation

Posted: Wed Feb 19, 2025 11:25 am
by julien_lacour
Hi George,

Got it, ideally how would you like the output to look like?

Regards,
Julien

Re: styling change tracking in the DITA CSS/PDF transformation

Posted: Wed Feb 19, 2025 5:31 pm
by gszabo
Hi Julien,

Thank you for your response.

I haven't worked out the exact details, but the functional requirement is to make the PDF more readable when the annotations are present. It might be as simple as making the annotations transparent with a slight border - then reviewers would be able to see the text that is covered by the annotation markers.

That being said, the implementation may change as I work with it. So what I'm looking for is the CSS that impacts the display, then I can evaluate options.

Regards,
George

Re: styling change tracking in the DITA CSS/PDF transformation

Posted: Mon Feb 24, 2025 3:20 pm
by julien_lacour
Hello,

I added this feature request in our tracking system, I will notify again this thread when a solution will be available.

Regards,
Julien

Re: styling change tracking in the DITA CSS/PDF transformation

Posted: Tue Feb 25, 2025 9:37 pm
by gszabo
Hi Julien,

thank you for adding the feature request.

Regards,
George