On Wednesday, 20 April 2005 20:38, Saurabh Nanda wrote:
> Hi,
>
> I'm preparing a multiple choice questionnaire for some purpose. I'm
> making the document in a very structured manner (Format ->
> Numbering/bullets->Outline->Very first outline).
>
> 1. In one of the questions, I need to insert a code snippet.
> 2. I press ender and change the font to Courier New.
> 3. The number changes from 1.2 to 1.3. I don't want that.
> 4. So I press the numbering icon in the toolbar to switch of the
> numbering. 5. I inser the code snippet.
> 6. Now I want to type in the multiple options, numbered a), b), c)
> and d) and then move on to question 1.3
>
> [I have attached a sample document to further make my problem
> clear]
>
> How do I do that? When I restart numbering (by pressing the icon in
> the tool bar) I am greated with the numbering starting all over
> from 1!!
>
> Any solutions?
>
> TIA
> Nandz.

Hi Nandz

Yes this does make sense. You want something like this I believe:

1.1 What is the first answer?                   1
        a. choice 1a                            2
        b. choice 1b                            3
        c. choice 1c                            4
1.2 What is the second answer?                  5
        a. choice 2a                            6
        b. choice 2b                            7
        c. choice 2c                            8
1.3 What does this code do?                     9
                snippet 1                       10
                snippet 2                       11
        a. choice 3a                            12
        b. choice 3b                            13
        c. choice 3c                            14
... etc

I've added line numbers on the right for clarity below. I can't detect 
how familiar you are with Writer, so I'll go basic. Excuse me if it 
go too basic.

This is easy to do with Styles. Enable the Stylist with F11. Lines 1 & 
5 will be one style, with their own indentation (0.0) and numbering 
style (1.1 etc). Lines 2,3,4,6,7,8 form another style (indent eg 1cm, 
numbering a,b,c).

The one trick is that line 6 will continue numbering from where the 
last line with that style (line 4) left off.

You can use the built in List paragraph styles for this:
Lines 1 & 2 might be List 1
Lines 2 & 6 might be List 2 Start
Lines 3,4,7,8 might be List 2

Define each of these styles in the Stylist (right click in Stylist, 
select Modify...), make sure that you select the correct indent, 
numbering style, character format for each, especially that List 2 
Start has the "Restart numbering" option selected in the Numbering 
taband the other styles don't have it selected.

As you start each new paragraph, double click the appropriate style in 
the stylist to select it, and the formatting you defined will be 
automatically applied.

If some of your choices weren't what you need, it is an easy matter to 
change the style and everything is updated.

There are other ways to accomplish what you want, but the above is the 
easiest overall. It takes a little research to understand styles but 
quickly becomes second nature. Doing it manually involves setting the 
numbering style, indent, character format, and restart y/n for almost 
every paragraph, which rapidly gets extremely tedious.

Other paragraphs in between like lines 10 & 11 will use a different 
style - Preformatted Text might be a good choice, or you can define 
you own new one. Switch paragraph numbering off in a case like this 
for these paragraph styles.

alan
-- 
Alan McKinnon
[EMAIL PROTECTED]
+27 82 337 1935 (C)
+27 86 110 2411 (W)
+27 12 349 9277 (F)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to