labelling figures
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 7
- Joined: Fri Jun 04, 2010 8:41 pm
labelling figures
I created a 'fig' in a topic and it is labelled 'Figure 1: my title'.
The my title is what I put in the 'title' element.
When it is assembled into a book, it might be Figure 7.1 (chapter 7, first figure).
How do I control how DITA numbers figures?
The my title is what I put in the 'title' element.
When it is assembled into a book, it might be Figure 7.1 (chapter 7, first figure).
How do I control how DITA numbers figures?
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: labelling figures
Hi,
There is a default configuration file located in:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/cfg/common/vars/en_US.xml
which contains the standard pattern for rendering a figure using IDIOM PDF:
<variable id="Figure">........
This pattern is then used from the:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl
in the template:
<xsl:template match="*[contains(@class,' topic/fig ')]/*[contains(@class,' topic/title ')]">........
By default the figure number seems to be represented by the total number of figures with title which were generated before it.
Regards,
Radu
There is a default configuration file located in:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/cfg/common/vars/en_US.xml
which contains the standard pattern for rendering a figure using IDIOM PDF:
<variable id="Figure">........
This pattern is then used from the:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/commons.xsl
in the template:
<xsl:template match="*[contains(@class,' topic/fig ')]/*[contains(@class,' topic/title ')]">........
By default the figure number seems to be represented by the total number of figures with title which were generated before it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Tue Dec 28, 2010 8:31 am
- Contact:
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: labelling figures
Hi,
This tutorial explains some DITA Open Toolkit PDF customizations:
http://www.scriptorium.com/whitepapers/ ... tweaks.pdf
The DITA Users List is also a good place to ask DITA customization questions:
http://tech.groups.yahoo.com/group/dita-users/
Regards,
Radu
This tutorial explains some DITA Open Toolkit PDF customizations:
http://www.scriptorium.com/whitepapers/ ... tweaks.pdf
The DITA Users List is also a good place to ask DITA customization questions:
http://tech.groups.yahoo.com/group/dita-users/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 13
- Joined: Wed Nov 17, 2010 8:44 am
Re: labelling figures
Is there any way you can cross reference <fig> numbering in the body paragraph?
As far as I know you can add a <ph> phrase element tag on a figure title. Add an ID to that <ph> element and cross reference it.
As far as I know you can add a <ph> phrase element tag on a figure title. Add an ID to that <ph> element and cross reference it.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: labelling figures
Hi,
As far as I know, if you set an id on the <fig> and then make a cross reference <xref/> to that id, the figure number and title will be displayed in the published output.
Regards,
Radu
As far as I know, if you set an id on the <fig> and then make a cross reference <xref/> to that id, the figure number and title will be displayed in the published output.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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