Ask Your Question

jonjermey's profile - activity

2016-06-08 07:26:45 +0100 received badge  Famous Question (source)
2015-04-09 18:27:50 +0100 received badge  Notable Question (source)
2015-03-18 20:52:38 +0100 commented answer Is there a macro for Writer which can find italic text in a particular style?

Many thanks for this What I need is to give italics a particular character style ONLY when they appear in a paragraph with a particular paragraph style. I've modified the macro to do this by adding an If statement

 if oFRange.ParaStyleName = "Sub1" Then
    oFRange.CharStyleName = "Sub + italic" 
 EndIf

which seems to do the trick. This macro will save me a great deal of work.

Jon.

2015-03-18 17:03:10 +0100 received badge  Popular Question (source)
2015-03-18 04:11:53 +0100 asked a question Is there a macro for Writer which can find italic text in a particular style?

Can someone point me to or provide a macro which can go through a Writer document and select all italic text in a particular named paragraph style?

Thanks,

Jon.

2014-05-25 00:42:00 +0100 commented answer Finding text with italics AND font name specified

I've used the Alternative Find and Replace without success. I have a document with two paragraph styles, Main and Sub 1. I select an italicised word in a Sub 1 paragraph, put the cursor there, go to the AFR box and select Properties/Similar (or Same) form of character (based on cursor), and press Find. It finds the next italicised characters in a Main style para.

The Find box shows [:::CharPosture=2::] -- I don't see how to include a paragraph style in there. Any suggestions?

Thanks, Jon.

2014-02-02 23:32:57 +0100 answered a question How can one search & replace direct formatting with styles?

Unfortunately neither Find and Replace nor extended search seem capable of applying both a style and a formatting criterion at once: e.g. there is no way to find italic characters only in Level 3 headings. Until this can be done the program is going to lag seriously behind Word.

2013-08-21 23:36:04 +0100 received badge  Famous Question (source)
2013-08-21 23:36:04 +0100 received badge  Notable Question (source)
2013-04-02 18:22:20 +0100 received badge  Popular Question (source)
2012-08-01 07:37:03 +0100 received badge  Student (source)
2012-08-01 07:25:19 +0100 received badge  Editor (source)
2012-08-01 07:23:31 +0100 asked a question Finding text with italics AND font name specified

I have a document with two paragraph styles, Main and Sub1. Within each style of paragraph there are some italic characters. I want to select the italics separately within each style and apply a different character style to each, e.g.

Italics in Main paragraphs become Main+Italic character style
Italics in Sub1 paragraphs become Sub1+Italic character style

I can select all italics with Find and Replace/Find All, but when I try and couple that with a paragraph style or another text format or attribute, it either misses some of the italics or picks up all the non-italicised text.

It's relatively simple for me to produce the document with these styles in different fonts, e.g. Times New Roman for Main and Arial for Sub1, if that makes it easier.

I'm getting very frustrated with this: is there really no way for Writer to combine a style search with a format search?