Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Issue with figure numbers in DITA task steps

Explorer ,
Nov 23, 2021 Nov 23, 2021

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? 

 

Figure_Title_Structure.PNGexpand image Figure_Title_Result.PNGexpand image

TOPICS
Formatting and numbering , PDF output , Structured , XML author
315
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 25, 2022 Jan 25, 2022

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:

zornitzad80431241_0-1643141481169.pngexpand image

 

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:

zornitzad80431241_2-1643142138524.pngexpand image

 

I hope that this is helpful.

I am attaching a copy of the filesfrom which I pasted screen captures.

 

Regards,

Z.Doneva

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2022 Jan 26, 2022

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

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2022 Jan 27, 2022
LATEST

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/

 

MattSTechCommTools_0-1643301571240.pngexpand image

 

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines