| View previous topic :: View next topic |
| Author |
Message |
SamH General User

Joined: 19 Nov 2005 Posts: 28
|
Posted: Tue Oct 31, 2006 2:08 pm Post subject: Making text Larger - 'bulk' option |
|
|
I have a large document, that I have decided I want to make the text smaller.
However there are loads of different text sizes and it would take an age selecting them all and making them bigger.
So I was just wondering if there was an option to maybe "-1" to all font sizes (e.g. so all font sizes 18 in the document would become 17, and all font sizes 12 would become 11), or whether something like that was planned, or if there was another way to do it. .
Sorry if its a stupid question.
Thanks. |
|
| Back to top |
|
 |
james_h Super User


Joined: 05 Nov 2005 Posts: 883
|
Posted: Tue Oct 31, 2006 6:08 pm Post subject: OO 2 Writer: Use styles to update paragraphs throughout |
|
|
OpenOffice.org Writer: Use styles to update paragraphs throughout a long document
If you use styles like heading 1, heading 2, text body etc. when writing your document, you can change the formatting of the various styles all at once wherever they appear in the document. You can define your own paragraph or character styles as well as using the built in ones. In addition, you can import styles from another document so that your formatting can be changed easily and appear consistent across documents. If you have used styles with MS Word or formatted HTML documents using a style-oriented composer (Mozilla, FrontPage etc.), it should be pretty easy to figure out.
If your document is formatted with styles, then format a paragraph labeled with the appropriate style like you want it. Make sure the whole paragraph is highlighted. Activate the styles palette with Format > Styles and Formatting F11.
Hold down the button at the extreme top right with the tooltip New Style from Selection. From the drop down menu select Update Style. Every paragraph with that style will be updated with the same font, font size, borders etc.
Some styles inherit characteristics from other styles. For example, Text Body settings are partially determined by the settings for Default style unless you set the Text Body style otherwise.
For more information about styles, see Help > OpenOffice.org Help F1, click Find, and search for Styles in Writer.
See also: WorkingWithStyles.pdf.
Last edited by james_h on Tue Oct 31, 2006 9:21 pm; edited 1 time in total |
|
| Back to top |
|
 |
acknak Moderator


Joined: 13 Aug 2004 Posts: 4295 Location: ~ 40°N,75°W
|
Posted: Tue Oct 31, 2006 6:12 pm Post subject: |
|
|
The only way I can think of to do this is to edit the XML text of the document. You could probably make a little script to reduce all the point sizes by 20%. In fact, I just tried this and it seems to have worked:
| Code: | $ unzip testx.odt styles.xml
$ perl -pi.bak -e 's/font-size="(\d+)/"font-size=\"".sprintf("%.1f",0.8*$1)/ge' styles.xml
$ zip testx.odt styles.xml |
It leaves you with nasty font sizes like "12.8pt", which can't be edited in Writer, but are displayed correctly, as far as I can tell. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|