Issue with figure numbers in DITA task steps
Copy link to clipboard
Copied
In a DITA task, whenever I add a <fig> element with a <title> to a step via an <info> element, FrameMaker assigns the step.info.begin paragrah format to <title>. In order for FrameMaker to assign the the figure.title paragraph format (which has numbering) to <title>, I need to add a <p> above <fig>. This also affect the PDF output.
Is there anyway I can get the numbering to appear without adding an empty <p> tag before <fig> or editing the EDD?
Copy link to clipboard
Copied
Hi there,
It is a very good question. I would like to know the answer as well.
As an workaround, in my <step> elements, I use the element <stepxmp> right after element </cmd>. We still include an element <p> before <title> and image elements but Framemaker includes the phrase "For example" after element <p>.
So, it looks like that:
as a XML code:
<step>
<cmd>The
<uicontrol>Capturing from Ethernet
(Wireshark)</uicontrol> screen appears - Scenario 1.
</cmd>
<stepxmp>
<p>Scroll down until
<term keyref="DHCP_dterm">DHCP</term> protocol
process Discover Offer appears.
</p>
<fig>
<title>DHCP Wireshark</title>
</fig>
<image
href="DHCP - Figure Wireshark DORA.JPG" placement="break" scale="80"
/>
</stepxmp>
</step>
Or when published as pdf:
I hope that this is helpful.
I am attaching a copy of the filesfrom which I pasted screen captures.
Regards,
Z.Doneva
Copy link to clipboard
Copied
The paragraph style is assigned via context formatting in the EDD, so editing the EDD would be the most appropriate way to do this.
However, making changes to the EDD can have unintended consequences, and often requires editing of more than one connected EDD.
The easiest workaround is likely to to incorporate an additional para of <p> content into your writing style.
-Matt
FrameMaker Course Creator, Author, Trainer, Consultant
Copy link to clipboard
Copied
In case you (or someone else) wants to tackle this, it appears the step.info.begin is coming from the info tag. Putting the p in front of the title is side stepping the FirstParagraphRules defined there. The EDD is
C:\Program Files\Adobe\Adobe FrameMaker 2020\Structure\xml\DITA_1.3\app\technicalContent\edd\task.eddmod.fm
If you need this changed, I recommend posting bug/feature request at https://tracker.adobe.com/
FrameMaker Course Creator, Author, Trainer, Consultant

