Numbering A Series of Paragraphs

Discuss the word processor

Numbering A Series of Paragraphs

Postby beau » Fri Sep 29, 2017 2:50 pm

I have an .odt file with hundreds of quotations in sequence like this:

a loving heart is the beginning of all knowledge.
~Thomas Carlyle

a poem begins in delight and ends in wisdom.
~Robert Frost

no one sees what is before his feet. we all gaze at the stars.
~Cicero

if you wished to be loved, love.
~Lucius Annaeus Seneca

Here's how it's formatted:
quote formatting.png

I'd like to add sequential numbers to each quote, like this:
1
a loving heart is the beginning of all knowledge.
~Thomas Carlyle
2
a poem begins in delight and ends in wisdom.
~Robert Frost
3
no one sees what is before his feet. we all gaze at the stars.
~Cicero
4
if you wished to be loved, love.
~Lucius Annaeus Seneca


Is there any way to automate the adding of numbers? I've got hundreds of quotes and I'd hate to have to number them all manually!! :knock:
Apache Open Office 4.0.0
Windows 7 Home Premium
beau
 
Posts: 121
Joined: Tue Jul 01, 2014 4:23 am

Re: Numbering A Series of Paragraphs

Postby Zizi64 » Fri Sep 29, 2017 4:35 pm

Plase upload your ODF type sample file here. Are those ~ signs as pure characters in your text, or they are special bullet signs in the applied paragraph style?
Tibor Kovacs, Hungary; LO4.4.7, LO5.3.7 on Win7x64Prof.
PortableApps, WinPenPack: LO3.3.0-LO5.4.3 and AOO4.1.4
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 6082
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Numbering A Series of Paragraphs

Postby beau » Fri Sep 29, 2017 5:00 pm

I'm not familiar with ODF files so I've just researched it, still not sure if what I've attached (sample-quotes-as-odt.odt) is the right thing. If what I've uploaded isn't right, please tell me what to do. Thanks!
I haven't uploaded to this forum before, hope I've done it correctly!

The "~" is a tilde (most upper left key on standard keyboards) but I can make the tildes asterisks or # or any other special character if necessary.
Attachments
sample-quotes-as-odt.odt
(11.08 KiB) Downloaded 7 times
Apache Open Office 4.0.0
Windows 7 Home Premium
beau
 
Posts: 121
Joined: Tue Jul 01, 2014 4:23 am

Re: Numbering A Series of Paragraphs

Postby acknak » Fri Sep 29, 2017 5:17 pm

Do you want the numbers on a separate line, as you showed?

To number the quotations, try this:

Edit > Find & Replace
Search for: ^[^~]
Options/Regular expressions: ON

Click Find All

Click the "Numbering on/off" button on the toolbar (icon shows paragraphs with Roman numerals)

To remove the indent before the numbers, click to the left of the FIRST quotation, then press Shift+Tab.

If you want the numbering on a separate line, it will take an extra step or two. Just ask if that's what you need.
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22691
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Numbering A Series of Paragraphs

Postby beau » Fri Sep 29, 2017 5:29 pm

Thanks so much. Unfortunately I've got to leave the office now and I won't be able to get back to you until Monday, my apologies for the delay.
I'll of course study up on your suggestions before replying.
Apache Open Office 4.0.0
Windows 7 Home Premium
beau
 
Posts: 121
Joined: Tue Jul 01, 2014 4:23 am


Return to Writer

Who is online

Users browsing this forum: Google [Bot] and 38 guests