How to change the default generated text format in PDF

Post here questions and problems related to editing and publishing DITA content.
lhsihan
Posts: 35
Joined: Thu Aug 15, 2019 5:31 pm

How to change the default generated text format in PDF

Post by lhsihan »

We write one own CSS file and use it as the CSS file in DITA Map PDF - based on HTML5 & CSS transformation scenario.
The CSS file contains some code like below:

Code: Select all

.sectiontitle tasklabel: {
    color: blue;
    font-weight:bold;
}

When doing transformation, we couldn't get the correct .merged.html and PDF file.

How can we set the the style for the generated text in PDF file?
Thanks a lot.
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: How to change the default generated text format in PDF

Post by Dan »

Hello,

I think there is a mistake in your CSS.
I think you need to match both tokens from the CSS class attribute.

Please try:

Code: Select all

*[class ~="sectiontitle"][class ~="tasklabel"] {
    color: blue;
    font-weight:bold;
}
Many regards,
Dan
lhsihan
Posts: 35
Joined: Thu Aug 15, 2019 5:31 pm

Re: How to change the default generated text format in PDF

Post by lhsihan »

Thanks Dan. It works.
Post Reply