Page 1 of 1
How to configure rowheader in PDF output?
Posted: Fri Feb 22, 2013 10:49 pm
by yiyi_vivi
Hi all,
In a table, I want to make the first column as the header, so I use
Code: Select all
<table frame="all" scale="80" rowheader="firstcol" >
But in PDF output, the first column is not bold as in the WebHelp output. And also I want to add a background-color to the first column to make it stand out. Where is the rowheader defined in xsl stylesheet and how can I edit it?
Thank you very much in advance.
Best,
Ivy
Re: How to configure rowheader in PDF output?
Posted: Mon Feb 25, 2013 4:03 pm
by Radu
Hi Ivy,
Oxygen uses the DITA Open Toolkit to publish DITA content to various output formats and from what I investigated the DITA OT PDF stylesheets do not handle the
rowheader attribute in any way.
I added an issue for this one:
https://github.com/dita-ot/dita-ot/issues/1462
It's probably an attribute which is seldom used and nobody noticed that it was not implemented in the PDF output.
Regards,
Radu
Re: How to configure rowheader in PDF output?
Posted: Thu Apr 23, 2020 7:24 am
by dbutch
Hi Radu,
Do you know if this was ever resolved, so that the
@rowheader attribute can be formatted in a similar manner to the <thead> element in a PDF?
In my CSS I use the following for the <thead>:
Code: Select all
*[class~="topic/thead"] {
background-color: #E7E6E6;
font-family: IBMPlexSans-SemiBold;
}
Thanks.
Re: How to configure rowheader in PDF output?
Posted: Fri Apr 24, 2020 11:39 am
by julien_lacour
Hello,
You can match both <thead> and entries marked as @rowheader using the following rule:
Code: Select all
th {
background-color: #E7E6E6;
font-family: IBMPlexSans-SemiBold;
}
The entries marked as @rowheader are converted in <th> instead of <td> during the transformation.
Regards,
Julien