On 15/04/2024 02:30, Philip Jackson wrote:
Hi Chris,
On 13/04/2024 18:10, Chris J. wrote:
Ubuntu linux 23.10
LibreOffice 7.6.5.2
So, question; is there a way to automate the application of the
styles and remove the tabs at the beginning of paragraphs. Normal
find and replaces doesn't cut it. Otherwise I'm forced to go through
several books by hand.
You can find tabs using the standard Find and Replace (Ctrl+H). In the
Find box, enter \t and leave the Replace box empty.
You will need to check the *Regular Expressions* box in the Find and
Replace dialog.
Like all Find and Replace ops, be wary of hitting the 'Replace All'
button in case you have used tabs anywhere else in the document other
than at the start of a paragraph. \t will locate all the tabs used
within the the doc.
If you *only* want to find a tab at the beginning of a paragraph, you
can use ^\t in the Find box. I checked this in LO 7.3.7.2 in Ubuntu
2204 and it works fine.
You can also use Find and Replace to locate one paragraph style and
replace it with another. In this case you will have to select the
Paragraph Styles box. This operation works fine to change styles but
it will not remove any 'ad hoc' manual formatting such as Bold,
Italic, tabs which you may have applied in the unwanted paragraph
style's text.
Chris, does chapter and heading text have leading tabs. When you talk
about tabs a the beginning of paragraphs, I assume just the first lines
of a paragraphs are indented with tabs and the rest of the paragraph
text just flows without line breaks. Do you have multiple leading tabs
or is it always a single tab with may be varying tab position. I have
had occasion to clean a plain text document by removing line breaks from
single lines to form a paragraph and remove indenting tabs. i.e. replace
a linebreak followed by 1 or more tabs with a single space when the line
break is not at the beginning of a line. Hopefully this is not your
situation.
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.