symbols ### appears in PDF output
Posted: Fri Feb 28, 2020 11:59 am
Hi,
In the past, I used "PDF based on DITA & CSS", and created an customization print css for the PDF output.
Everything worked well with your instructions.
The only problem is that certain styles defined in custom css file didn't work very well for the Tables.
Today, I am testing "PDF based on HTML & CSS.
I find that the tables displayed well in the PDF output.
But!
The symbols ## appears again!
The first level Topic titles display correctlly.
The second level Topic title, third level topic title only display English characters, and display #### instead of the Chinese characters.
However, all the topic titles display correctly in the TOC.
This is what I set in my customized css file:
Another issue on the TOC page, I want to add a TOC title on the TOC page, so I add this codes in the css file.
It works if I use "PDF based on DITA & CSS", but doesn't work if I use "PDF based on HTML & CSS"
Please help.
Thanks and Regards,
Catherine
In the past, I used "PDF based on DITA & CSS", and created an customization print css for the PDF output.
Everything worked well with your instructions.
The only problem is that certain styles defined in custom css file didn't work very well for the Tables.
Today, I am testing "PDF based on HTML & CSS.
I find that the tables displayed well in the PDF output.
But!
The symbols ## appears again!
The first level Topic titles display correctlly.
The second level Topic title, third level topic title only display English characters, and display #### instead of the Chinese characters.
However, all the topic titles display correctly in the TOC.
This is what I set in my customized css file:
Code: Select all
*[class ~= "topic/title"] {
font-weight: 900 !important;
color: blue !important;
font-family: SourceHanSansCN-Light, sans-serif !important;
}
Another issue on the TOC page, I want to add a TOC title on the TOC page, so I add this codes in the css file.
It works if I use "PDF based on DITA & CSS", but doesn't work if I use "PDF based on HTML & CSS"
Code: Select all
/* Title in the TOC page */
toc-title[empty]:lang(zh-cn):before {
content: "目录";
}
Please help.
Thanks and Regards,
Catherine