Page 1 of 1

WebHelp Responsive: Changing Figure Title Style

Posted: Fri Sep 02, 2016 4:20 pm
by Anonymous1
Hi,

by default, the WebHelp Responsive output puts the figure titles above the image and puts a number in front of the title: Figure 1. Project window

What I would like to do:
1. Figure title without number (Project window)
2. Figure title below image

For step 1, I thought I could use the args.figurelink.style parameter and set it to TITLE. Unfortunately this didn't remove the Figure 1. from the output.

For step 2, I didn't find a solution yet.

(Oxygen 18.0.1, custom DITA OT 2.0.1)

Re: WebHelp Responsive: Changing Figure Title Style

Posted: Mon Sep 05, 2016 1:05 pm
by radu_pisoi
Hi,
B-E-N wrote: What I would like to do:
1. Figure title without number (Project window)
This is the default HTML output when you are using an external DITA-OT framework. The DITA-OT 2.x that comes bundled with oXygen 18 has installed a DITA-OT plugin that removes the figure number. This plugin is installed in:

Code: Select all

{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.html.custom/
So, a solution is to copy this plugin in your external DITA-OT. After you have copied this plugin please run the 'Run DITA OT Integrator' transformation scenario to activate it.
B-E-N wrote:2. Figure title below image
About this problem, please see the following related post:
topic13198.html
topic13006.html

Re: WebHelp Responsive: Changing Figure Title Style

Posted: Fri Oct 14, 2016 4:42 pm
by Anonymous1
Sorry for the late reply. But thanks, all worked fine!

For step 1, I edited the dita2htmllmpl.xsl file instead to remove the "Figure" caption. Adding a new plug-in to our custom framework and then triggering the DITA-OT Integrator caused too many side effects.

For step 2, I chose the XSLT approach. The CSS approach caused the images to look stretched in the output (not all of our images use the "scale" attribute).

Re: WebHelp Responsive: Changing Figure Title Style

Posted: Fri Oct 22, 2021 1:15 pm
by ionela
Hi,

Just to update the thread, version 24.0 of oXygen XML has been released the following improvement was implemented:
Control the Placement of Titles for Tables and Figures
New transformation parameters (webhelp.figure.title.placement and webhelp.table.title.placement) can be used to control whether the titles of tables or figures appear at the top or bottom of the component.

The complete what's new list is available here:
What's New in Oxygen XML WebHelp 24
What's New in Oxygen XML Editor 24

You can download v24.0 from our website:
Download Oxygen XML Products

Let us know if you encounter further problems with the new version.

Regards,
Ionela