questions about font and picture settings
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 15
- Joined: Thu Sep 16, 2021 6:05 am
questions about font and picture settings
Hi There:
I'm using Oxygen XML 20.1 and PDF output.
I have some questions about font and picture settings.
1. How to add a subscript to a picture? And can I set the subscript to be centered and modify the font size of the subscript?
2. When I call element P, how to set line break in the same paragraph?
Thanks!
I'm using Oxygen XML 20.1 and PDF output.
I have some questions about font and picture settings.
1. How to add a subscript to a picture? And can I set the subscript to be centered and modify the font size of the subscript?
2. When I call element P, how to set line break in the same paragraph?
Thanks!

You do not have the required permissions to view the files attached to this post.
-
- Posts: 681
- Joined: Wed Oct 16, 2019 3:47 pm
Re: questions about font and picture settings
Post by julien_lacour »
Hello,
Oxygen 20.1 has officially reached its end of support period since the release of Oxygen 23.0.
Also since Oxygen 21.0 we recommend the usage of PDF-HTML5&CSS transformation instead of PDF-XSL-FO.
Nevertheless, regarding both points, I can suggest few options:
Julien
Oxygen 20.1 has officially reached its end of support period since the release of Oxygen 23.0.
Also since Oxygen 21.0 we recommend the usage of PDF-HTML5&CSS transformation instead of PDF-XSL-FO.
Nevertheless, regarding both points, I can suggest few options:
- You can try to put your image into a figure element and add a title or a description element under it, then customize this element.
- You can try to ask on the DITA-OT users group to see if this is possible to break within a paragraph.
I also give you a set of useful links that will help you customizing your PDF outputs:
https://www.oxygenxml.com/doc/versions/ ... utput.html
https://www.dita-ot.org/3.6/topics/pdf- ... aches.html
https://www.dita-ot.org/3.6/topics/pdf- ... urces.html
Julien
-
- Posts: 15
- Joined: Thu Sep 16, 2021 6:05 am
Re: questions about font and picture settings
Hi Julien,
Thank you so much for your suggestion!
May I know how to put the image into a figure element? I don’t seem to find this option. Do I need to upgrade the software version?
Thank you so much for your suggestion!
May I know how to put the image into a figure element? I don’t seem to find this option. Do I need to upgrade the software version?
-
- Posts: 681
- Joined: Wed Oct 16, 2019 3:47 pm
Re: questions about font and picture settings
Post by julien_lacour »
Hello,
No, you don't need any upgrade, simply add the <fig> element as a parent of <image>.
http://docs.oasis-open.org/dita/dita/v1 ... g.html#fig
Regards,
Julien
No, you don't need any upgrade, simply add the <fig> element as a parent of <image>.
http://docs.oasis-open.org/dita/dita/v1 ... g.html#fig
Regards,
Julien
-
- Posts: 15
- Joined: Thu Sep 16, 2021 6:05 am
Re: questions about font and picture settings
Hi Julien,
Thank you!
Now that I've called the <fig> element, and then how do I add the image and subscript it?
Thank you!
Now that I've called the <fig> element, and then how do I add the image and subscript it?
image.png
You do not have the required permissions to view the files attached to this post.
-
- Posts: 681
- Joined: Wed Oct 16, 2019 3:47 pm
Re: questions about font and picture settings
Post by julien_lacour »
Hello,
Your XML source must look like the following (in Oxygen Text Mode - <desc> is optional if you just need the title):
If you are using Author Mode, you can directly select the <image> tag, press Enter and select Surround with > fig in the contextual menu.
Regards,
Julien
Your XML source must look like the following (in Oxygen Text Mode - <desc> is optional if you just need the title):
Code: Select all
<fig id="fig_tmh_c2g_5qb">
<title>Iris sanguinea</title>
<desc>Description</desc>
<image href="../../images/Iris_sanguinea.jpg" scale="50" id="image_inh_c2g_5qb"/>
</fig>
Regards,
Julien
-
- Posts: 15
- Joined: Thu Sep 16, 2021 6:05 am
Re: questions about font and picture settings
Hi Julien,
Thank you very much for your suggestion, now I have successfully added a description to the picture, as shown in the picture:
Thanks in advance!
Thank you very much for your suggestion, now I have successfully added a description to the picture, as shown in the picture:
image.png
But it seems that I can't set it to center or adjust its font size? Can I get some further advice?Thanks in advance!
You do not have the required permissions to view the files attached to this post.
-
- Posts: 681
- Joined: Wed Oct 16, 2019 3:47 pm
Re: questions about font and picture settings
Post by julien_lacour »
Hello,
This is when the hard part starts: for this you need to customize the DITA Map PDF - based on XSL-FO transformation by adding an extension to the 'org.dita.pdf2' DITA-OT plugin. This is why I gave you links to DITA-OT users group and to DITA-OT documentation in my first answer.
You need to create some XSLT style-sheets that match some elements and add them additional attributes like font-size or text-align.
If you are not used to XSLT, you may need an upgrade to a newer version of Oxygen. The new Oxygen 24.0 will be available soon and with it you can use the new DITA Map PDF - based on HTML5 & CSS transformation which uses CSS instead of XSL for PDF output and is easier to use for novice users.
Regards,
Julien
This is when the hard part starts: for this you need to customize the DITA Map PDF - based on XSL-FO transformation by adding an extension to the 'org.dita.pdf2' DITA-OT plugin. This is why I gave you links to DITA-OT users group and to DITA-OT documentation in my first answer.
You need to create some XSLT style-sheets that match some elements and add them additional attributes like font-size or text-align.
If you are not used to XSLT, you may need an upgrade to a newer version of Oxygen. The new Oxygen 24.0 will be available soon and with it you can use the new DITA Map PDF - based on HTML5 & CSS transformation which uses CSS instead of XSL for PDF output and is easier to use for novice users.
Regards,
Julien
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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