#1
|
|||
|
|||
Applying a new style to a multi-level list resets all the indenting
Say I have a multi-level list like this:
• Item 1 * Sub Item 2If I apply a new style to it, even if that style already has multi-level lists defined in it, all the indents disappear and it looks like this:~ Sub Sub Item 3 • Item 1 • Sub Item 2 • Sub Sub Item 3 This is a problem for me as I have lists with hundreds of items in a document, and I need to restyle about half of them (so I cannot just change the style they are already assigned). If I make a new style with the relevant changes and apply it, all the indenting disappears, and I would have to manually recreate all the indenting. Any ideas how to overcome this? |
#2
|
||||
|
||||
The three levels need to have three styles not one. One paragraph style can only align with one level of an outline list.
When you define your outline level list, specify the styles for each of the top three levels (or more if you think you will ever need the additional levels).
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
|
#4
|
|||
|
|||
Is there any way to programatically apply these new styles based on different indent levels?
I've already got a very long document and that's what I'm working with. I do appreciate the best practice guidelines, but after I set up the styles, the client requested half the lists be put in 2 column layout and so those lists need different tab spacing etc. So I really do need to change styles already applied, while keeping the indents somehow. |
#5
|
||||
|
||||
A macro could be run to apply the relevant styles based on their indent but you would need to supply a sample document if you want someone to write it for you.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#6
|
|||
|
|||
Thanks for all your replies. I now know for sure that there is no way to apply a new style to a list while retaining indent information.
I'm expert in inDesign, and there, you always have to have a separate style for each indent level. So that's not so surprising. But I am surprised how fragile the indent levels are if you choose to use the multi-level lists method. Final question - is there a way to find different indent levels in 'Advanced Find and Replace'? There are options under 'Advanced Find and Replace>Find Formatting' like 'Paragraph>Outline Level' and 'Paragraph>Indentation>Inside' but I could not get settings where these would match any of the list levels. Can they? |
#7
|
|||
|
|||
I believe that paragraph outline level should do this.
[Edit, I was wrong in this belief.] Last edited by Charles Kenyon; 03-24-2021 at 08:12 AM. |
#8
|
|||
|
|||
Unfortunately, in my tests, all levels of multi-level lists were matched by
Outline Level: Body Text ...and not matched by any other level. |
#9
|
|||
|
|||
Thank you. I stand corrected and learned something.
|
#10
|
||||
|
||||
Are you looking for a vba solution to this problem? You can identify the list level relatively easily along with a style name. Those two bits of information will allow you to restyle according to level.
Code:
Sub TestLevels() Dim aPar As Paragraph, sNum As String For Each aPar In ActiveDocument.Paragraphs If aPar.Style = "List Paragraph" Then Debug.Print aPar.Range.ListFormat.ListLevelNumber If aPar.Range.ListFormat.ListLevelNumber > 1 Then aPar.Style = "List " & aPar.Range.ListFormat.ListLevelNumber Else aPar.Style = "List" End If End If Next End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Applying New Multi-Level List to Existing Document with Manual Numbering and Existing Styles | stanley | Word | 4 | 12-15-2020 10:59 AM |
Delete Multi-Level List Style in Word 2016 | rziegler | Word | 2 | 05-03-2020 10:47 AM |
Saving Multi-level List Style (Bullet Points) | Nuishi333 | Word | 1 | 07-29-2014 08:28 PM |
Customise Normal style with multi-level bullets | meileetan | Word | 4 | 08-28-2012 08:23 AM |
Applying Line Spacing at different level in a multilevel list | James_8 | Word | 3 | 08-07-2012 11:27 PM |