I have a 400-page document which was converted from a PDF file and is therefore completely messed up in all kinds of ways. There is some application of paragraph styles, but it’s random and erratic, and everything has the most ridiculous direct-formatting overrides. I’m trying to apply the base paragraph styles without having to go through 400 pages and applying to each paragraph individually.
The most consistent feature of the messed-up formatting is the paragraph indenting (left indent and/or first-line indent, but not right indent, which is all over the shop and more or less varies for every paragraph in the document), so I’m trying to do some fairly simple finds to apply styles in bulk… but it doesn’t seem to be possible.
In the Find and Replace dialog, you can enter various indenting options in Format → Indents & Spacing, but the issue is that if I enter a value in “First line” and leave the others blank, the other two options (“Before text” and “After text”) are force-filled to a value of zero when I hit “OK”, which completely defeats the purpose when the whole point is that the other values vary. (Word does the same thing, which was the reason I tried in LO in the first place.)
I’ve installed the AltSearch extension and tried various permutations of the syntax shown in this answer, but like the asker of that question, I cannot get AltSearch to work properly. Searching for [:::ParaFirstLineIndent=0400::]
finds all instances of the paragraph style I want to apply (which has a 0.4 cm first-line indent), but doesn’t find any of the hundreds of instances of text in other paragraph styles with a 0.4 cm first-line indent. I don’t know if AltSearch is getting auto-applied zero values for the other indent values as well.
How can I do this? Can I do this?