Figures
Post here questions and problems related to editing and publishing DITA content.
Figures
Hi,
is there a simple way the replace the word 'Figure' by 'Image'?
My project only contains images (and no tables), so I prefer to read something like 'Image 2' instead of 'Figure 2' when I convert to PDF.
My typical data-structure:
<section> <fig> <title> xxx</title><image href ..../></fig> </section>
Thanks!
is there a simple way the replace the word 'Figure' by 'Image'?
My project only contains images (and no tables), so I prefer to read something like 'Image 2' instead of 'Figure 2' when I convert to PDF.
My typical data-structure:
<section> <fig> <title> xxx</title><image href ..../></fig> </section>
Thanks!
-
- Posts: 495
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Figures
Post by julien_lacour »
Hello,
If you want to publish your output in PDF using CSS, you can use the following CSS:
If you want to do this in another output on in Author mode, could you add details to this request?
Regards,
Julien
If you want to publish your output in PDF using CSS, you can use the following CSS:
Code: Select all
*[class ~= "fig--title-label"] {
display: none;
}
*[class ~= "topic/fig"] > [class ~= "topic/title"]::before {
display: inline;
content: "Image " counter(figcount) "" ": ";
}
Regards,
Julien
Re: Figures
Thanks for your reply!
Actually I want to use Miramo as it offers a very easy customisation of the generated PDF output.
How can this be accomplished in Author-Mode?
On a wider view:
Would it also be possible to separate this 'label' based on contents, by using some attribute?
Eg.: Table 1, Image 1, Diagram 1, Formular 1 ....
Actually I want to use Miramo as it offers a very easy customisation of the generated PDF output.
How can this be accomplished in Author-Mode?
On a wider view:
Would it also be possible to separate this 'label' based on contents, by using some attribute?
Eg.: Table 1, Image 1, Diagram 1, Formular 1 ....
Re: Figures
Good day MicTie!
I am Corinna from Datazone Miramo, stepping in to answer this one as it seems to be a Miramo question.
By default, the 'figureTitle' ParaDef ListLabel is configured to reference the 'lang-figure' language variable, which is set to 'Figure' for English publications (different values will be automatically swapped in depending on the DITA content xml:language context). Here's a screenshot of the figureTitle <ParaDef> 'ListLabel' dialog to illustrate this:
To change 'Figure' to 'Image' you can do either of the following:
See also the section on 'Controlling formatting using DITA @outputclass values' for information on using @outputclass values to override the default formatting - for example:
... would apply a 'diagramTitle' ParaDef to the given title paragraph - the 'diagramTitle' ParaDef can be configured as required in the MFD template, eg to have the word 'Diagram' in the ParaDef ListLabel..
I do hope that answers your question, if you need further help please reach out either here or to support@datazone.com.
Best regards,
... Corinna
I am Corinna from Datazone Miramo, stepping in to answer this one as it seems to be a Miramo question.
By default, the 'figureTitle' ParaDef ListLabel is configured to reference the 'lang-figure' language variable, which is set to 'Figure' for English publications (different values will be automatically swapped in depending on the DITA content xml:language context). Here's a screenshot of the figureTitle <ParaDef> 'ListLabel' dialog to illustrate this:
- image.png (25.45 KiB) Viewed 1301 times
To change 'Figure' to 'Image' you can do either of the following:
- Edit the MiramoPDF DITA-OT plugin language configuration file/s to change the 'lang-figure' text to 'Image' in all the languages you expect to publish in.
- Edit the label text in the ListLabel dialog to replace language variable by the word 'Image' (not recommended unless you're sure you will only ever publish in English
See also the section on 'Controlling formatting using DITA @outputclass values' for information on using @outputclass values to override the default formatting - for example:
Code: Select all
<title outputclass="mmpdf:paraDef:diagramTitle">this is a diagram</title
I do hope that answers your question, if you need further help please reach out either here or to support@datazone.com.
Best regards,
... Corinna
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