How to make figure title below the figure image in task topic(OT2.5)
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 29
- Joined: Tue Jun 27, 2017 2:10 pm
How to make figure title below the figure image in task topic(OT2.5)
Hi Dita expert,
As the default setting, figure title is below the figure image.
However, in my PDF, figure tiles are above the figure images which are added in the Oxygen task topic,while figure tiles are blow the figure images which are added in the Oxygen concept topic.
How should I set?
Thanks!
br
Lisa
As the default setting, figure title is below the figure image.
However, in my PDF, figure tiles are above the figure images which are added in the Oxygen task topic,while figure tiles are blow the figure images which are added in the Oxygen concept topic.
How should I set?
Thanks!
br
Lisa
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to make figure title below the figure image in task topic(OT2.5)
Hi Lisa,
There is a DITA OT plugin-in:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.custom
which Oxygen ships with its default bundled DITA OTs in order to move the figure title above the image no matter in what topic type the figure is included.
If you are using an external DITA OT do you have this plugin installed in the DITA OT that you are using?
Maybe there is a difference in title placement behavior because you have a custom PDF customization plugin which may also match the DITA figure and perform custom processing for it.
Regards,
Radu
There is a DITA OT plugin-in:
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.pdf.custom
which Oxygen ships with its default bundled DITA OTs in order to move the figure title above the image no matter in what topic type the figure is included.
If you are using an external DITA OT do you have this plugin installed in the DITA OT that you are using?
Maybe there is a difference in title placement behavior because you have a custom PDF customization plugin which may also match the DITA figure and perform custom processing for it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Thu Sep 14, 2017 10:24 am
Re: How to make figure title below the figure image in task topic(OT2.5)
Post by lisazeng99 »
Hi Radu,
Thanks for your suggestion. I aslo checked the plugin.
To fix this issue
1. In below template, make sure red line (image) is above blue line (figure title)
<xsl:template match="*[contains(@class,' topic/fig ')]">
<fo:block xsl:use-attribute-sets="fig">
<xsl:call-template name="commonattributes"/>
<xsl:call-template name="setFrame"/>
<xsl:call-template name="setExpanse"/>
<xsl:if test="not(@id)">
<xsl:attribute name="id">
<xsl:call-template name="get-id"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[not(contains(@class,' topic/title '))]"/>
<xsl:apply-templates select="*[contains(@class,' topic/title ')]"/>
</fo:block>
</xsl:template>
2. after step 1 is confirmed while the figure title is still on the above of image. check the figure structure in dita.
my code is below, so the image will be always under the title, since it is in title.
fig
---title
--image
so, I changed the structure like below: title and image are in the same level. then the title is under image now as the "topic/fig" wishes.
fig
---title
---image
Thanks again!
br,
Lisa
Thanks for your suggestion. I aslo checked the plugin.
To fix this issue
1. In below template, make sure red line (image) is above blue line (figure title)
<xsl:template match="*[contains(@class,' topic/fig ')]">
<fo:block xsl:use-attribute-sets="fig">
<xsl:call-template name="commonattributes"/>
<xsl:call-template name="setFrame"/>
<xsl:call-template name="setExpanse"/>
<xsl:if test="not(@id)">
<xsl:attribute name="id">
<xsl:call-template name="get-id"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[not(contains(@class,' topic/title '))]"/>
<xsl:apply-templates select="*[contains(@class,' topic/title ')]"/>
</fo:block>
</xsl:template>
2. after step 1 is confirmed while the figure title is still on the above of image. check the figure structure in dita.
my code is below, so the image will be always under the title, since it is in title.
fig
---title
--image
so, I changed the structure like below: title and image are in the same level. then the title is under image now as the "topic/fig" wishes.
fig
---title
---image
Thanks again!
br,
Lisa
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