Ask Your Question
1

How can I insert (or remove) page breaks throughout a document via search and replace?

asked 2012-06-27 13:54:15 +0200

dshimer gravatar image dshimer flag of United States
11 1 1 4
http://www.manmapping.com...

updated 2013-01-27 23:04:11 +0200

manj_k gravatar image manj_k
5719 4 33 48

I have a document that will eventually be 100 pages and there is a unique piece of text at the beginning of each page. I would like to search for that text and replace it with a page break followed by the text. I am generating the document via another program so if I needed to place something that could be completely replaced by a page break I could also do that. The real question is how to put page breaks in the search and replace dialog.

delete close flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
1

answered 2012-06-27 14:27:07 +0200

tohuwawohu gravatar image tohuwawohu flag of Germany
1812 13 40

The problem is that page breaks are properties of the first paragraph on a page, so they aren't accessible for search & replace using regular expressions. In your case, a solution would be to assign a special paragraph style to all those "first paragraphs". AFAIK you can't do this using the built-in search and replace, but there's a LibreOffice Writer extension that allows for this (available for OpenOffice, too). Hope this works for you.

link delete flag offensive edit

Comments

Sorry, but I'm used to stack exchange sites Is there a way to "accept" this answer? I don't have enough karma to upvote it, or is there something else I should do? The extension worked exactly the way I wanted it to. Fantastic thanks

dshimer ( 2012-06-27 15:24:03 +0200 )edit

Happy to hear that the extension solved the problem! - It seems that the askbot software still has some issues yet, i'm missing some features familiar from stackexchange, too...

tohuwawohu ( 2012-06-27 15:49:37 +0200 )edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-06-27 13:54:15 +0200

Seen: 1,550 times

Last updated: Jun 28 '12