Skip to main content
4-Participant
May 13, 2026
Question

Text to appear to left of ordered list

  • May 13, 2026
  • 5 replies
  • 107 views

For specific sections of my document, I need to text to appear to the left of an external list for certain list items. I have created a variablelist, but it doesn’t appear to be working.  I have used Arbortext for many years, but this is my first attempt without a pre-existing styler / dita structure.  A styler was applied to the document, but I am just learning how it works. 

5 replies

18-Opal
May 21, 2026

Two thoughts are, you could check out the sidebyside alignment below

https://support.ptc.com/help/arbortext/r8.3.1.0/en/index.html#page/styler/styler/help27579.html

or you could add a condition to the stylesheet that would cause the text to show up on the left, possibly using the outputclass attribute to trigger it, if you do not need it often.

 

Thanks

Bryon

Community Moderator
June 1, 2026

Hi ​@DC_14580417,

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.
Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,
Anurag 

4-Participant
June 1, 2026

No, that solution wasn’t applicable as I want the text to appear to the left of  a variety of ordered steps, not a section. 

4-Participant
June 1, 2026

But thank you though!!!!

 

18-Opal
June 19, 2026

I think Bryon’s on the right track, as long as you put the role attribute on the listitem, and configure the stylesheet correctly. (Bryon’s attribute name was taken from DITA, but the concept translates into Docbook quite well.) I was able to get pretty good results with the following:

  1. Put the margin label on the <listitem> in the “role” attribute
  2. In the stylesheet make the following changes:
    1. Under “listitem in orderedlist”, add a condtion: “If attribute ‘role’ is assigned any value” 
    2. For that condition, open the Generated Text panel, and in before-text, add:
      1. Insert user formatting element->New
      2. call it “_ufe:lefttext”
      3. Inside the new _ufe:lefttext element, insert Attribute content->Current element, “role”
    3. For the newly created ufe:lefttext element:
      1. Set the style of the element to “Block”
      2. Open the Side by side panel, and set the following:
        1. Align side by side with following: Yes
        2. Placement: Left
        3. Horizontal offset: select “Inside margin” from the droplist, and then add a minus sign in front, e.g. “-25mm”
        4. Width: 0pc
      3. Open the Spacing panel and set the following:
        1. Spacing before: Preferred: -1.1em

That should give you something pretty close to what you want. Here’s the example output I generated with this approach: