Using linebreaks in document title on the title page
Posted: Mon Aug 07, 2017 8:20 pm
Howdy,
I am trying to break the title that's displayed on the title page of my document. From what I've read on this page in the Oxygen guide, it suggests that I do this:
I am trying to break the title that's displayed on the title page of my document. From what I've read on this page in the Oxygen guide, it suggests that I do this:
- Create a translucent placeholder image that would be 1x1 pixel in size.
- Insert this image right within the <title> tag just where I want the title to break.
- Created a DITAMAP file and defined the references to the 1x1 px image in there:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<!-- Copyright (c) 2017 Company2 -->
<map>
<title>My software product, version 1.1 Reference Manual
</title>
<keydef keys="product-name">
<topicmeta>
<keywords>
<keyword>My software product, version 1.1</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="copyright1">
<topicmeta>
<keywords>
<keyword>© 2009 Company1</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="copyright2">
<topicmeta>
<keywords>
<keyword>© 2017 Company2</keyword>
</keywords>
</topicmeta>
</keydef>
<!-- Reference to the linebreak.png which is a translucent 1x1 px png image -->
<keydef href="images/linebreak.png" platform="windows" keys="linebreak" format="png"/>
<topicref href="v11reference.dita">
<mapref href="topics/introduction/intro.ditamap" format="ditamap"/>
<mapref href="topics/working_with_software/working_with_software" format="ditamap"/>
<mapref
href="../../com.mycompany.myproduct.doc.common/topics/how_to_reach_us/how_to_reach_us.ditamap"
format="ditamap" toc="no"/>
</topicref>
</map> - Created the v11reference.dita file with the following content:
Now when I apply a PDF transformation, the image inserts everywhere where my DITA files reference the <title> (document heading, text after Contents) but the title page. The title on the title page remains displayed without the inserted PNG.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_aht_3xs_51b">
<title>
<ph>My software product, version 1.1</ph>
<image keyref="linebreak" placement="break"></image>
<ph>Reference Manual</ph>
</title>
<body>
</body>
</topic>
I've tried omitting the <ph> tag and referencing likeAll to no avail.Code: Select all
<title>
My software product, version 1.1
<image keyref="linebreak" placement="break"></image>
Reference Manual
</title>
What is that I am doing wrong?
How do I make Oxygen/DITA-OT to break only the title on the title page?
Thank you in advance.