Skip to main content
nicolòq22088137
Participant
January 15, 2022
Question

underline a single number in numbered lists

  • January 15, 2022
  • 2 replies
  • 1673 views

Hi everyone,
Is it possible to automatically underline a single number in numbered lists or automatic page numbers? for example if I want to underline only number 6 of a list? thank you

2 replies

Willi Adelberger
Community Expert
Community Expert
January 16, 2022

Create a new paragraph style based on the first on, use another character style for the number with underlining here,

Peter Spier
Community Expert
Community Expert
January 15, 2022

It certainly doesn't appear to be through the user interface directly, but it might be possible through scripting.

I think it could be done with a GREP style as part of the assigned paragraph style AFTER converting a numbered list to regular text, but you would only want to do this after all editing is complete.

James Gifford—NitroPress
Legend
January 15, 2022

Isn't that odd! Using a character style, it appears to be possible to apply every modification to a list number except underline and strikethrough.

James Gifford—NitroPress
Legend
January 16, 2022

I agree with your interpretation of highlighting the entire marker, but unless I'm missing something about numbered lists, which is very possible as I rarely use them, you can't pick one number out of the list to highlight until the numbers are converted to text.

Are you saying you can include multiple paragraph styles in the same list?


Yes.

  • MyListItem — base definition with ListNum character style applied to numbers.
  • MyListItem1 — base definition with a 'reset to 1' setting (optional)
  • MyListItemHilite — exactly the same as MyListItem, but ListNumHilite character style (bold, different color, etc.)

A basic list setup except for being able to tag one (or more) of the elements with the paragraph style that highlights the number.

 

As noted, this will work with ANY character style variation except underline and strikethrough. I can't imagine why those are excluded.