Adding page numbers to links in DITA PDFs generated with CSS?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 25
- Joined: Sun Aug 05, 2018 5:15 am
Adding page numbers to links in DITA PDFs generated with CSS?
If I want to created a printed book from a large DITA map with many links, is there a way to automatically add a page number behind every link so that readers can still follow the links? For example, if the links happen to be capitalized, instead of "see LINK", I want the output to read "see LINK (p. 212)". Is there a best practice to accomplish this?
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Adding page numbers to links in DITA PDFs generated with CSS?
When applying the DITA Map to PDF (WYSIWIG or HTML5 based) transformation scenario, (having Chemistry as CSS processor ) you should automatically get links with a "(on page NN)" text following them.
Are the links working (i.e. are clickable and navigate correctly)?
What oXygen version are you using?
For your information, the builtin CSS rules are the following:
You can use them in the customization CSS.
Many regards,
Dan
Are the links working (i.e. are clickable and navigate correctly)?
What oXygen version are you using?
For your information, the builtin CSS rules are the following:
Code: Select all
*[class ~= "topic/xref"][href]:after,
*[class ~= "topic/link"][href]:after {
content: " (page " target-counter(attr(href), page) ")";
}
Many regards,
Dan
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service