automatic numbering of figures in text

Everything related to our flagship word processor.
Post Reply
rben
Posts: 6
Joined: 2008-12-10 03:40:09

automatic numbering of figures in text

Post by rben »

i cannot make the automatic numbering work for me. It continius with no. 1 again and again. what is wrong?
rivka
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: automatic numbering of figures in text

Post by martin »

If you always want the numbering to always continue for that list style, turn on the "continue numbering across document content" option for that style in the stylesheet view. If you want to manually choose one specific point where numbering should continue, select that paragraph and use the menu Format > Lists > Continue Numbering From Previous.
User avatar
greenmorpher
Posts: 767
Joined: 2007-04-12 04:01:46
Location: Melbourne, Australia
Contact:

Re: automatic numbering of figures in text

Post by greenmorpher »

Hey, I didn't get that either. That's really pretty damned cool. Great work, Martin et al.

Cheers, Geoff

Geoffrey Heard, Business Writer & Publisher

"Type & Layout" -- how you can use type and layout to turbocharge your messages in print; "Success in Store" -- go retail, enjoy it and make money. Real business smarts @ just $29.95. See these books and more at http://www.worsleypress.com
rben
Posts: 6
Joined: 2008-12-10 03:40:09

Re: automatic numbering of figures in text

Post by rben »

the "continue numbering from previous" is lighted only after you start, and it still gives me only no.1, and not in the right place either.
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: automatic numbering of figures in text

Post by martin »

I'm not sure I understand exactly what you are saying, but it sounds like maybe the list items you are trying to continue numbering across are actually part of different list styles. Numbering will only continue if the list styles are the same. Check to make sure that you have the same list style applied to your paragraphs.
rben
Posts: 6
Joined: 2008-12-10 03:40:09

Re: automatic numbering of figures in text

Post by rben »

sorry to bother you again, but something is not working right. can you tell me please, how to begin entering: "photo no.1" "photp no.2." etc. in the regular text. i either get only 1. or nothing at all. I am writing my thesis and will have more than hundred photoes, so it needs to be automatuc.
thanks Rivka
User avatar
Hamid
Posts: 777
Joined: 2007-01-17 03:25:42

Re: automatic numbering of figures in text

Post by Hamid »

There is no automatic numbering of the type which can begin anywhere in the document (as is the case with the good old Nisus Writer Classic). List styles in NWP generate automatic numbering only at the start of paragraphs, so this kind of numbering cannot be used in your case. The feature which allows automatic numbering anywhere in the document is somewhere on the list of feature requests.

In the meantime there is a workaround which may well work for the type of document you have. It involves inserting a Section Break on the same page after every photo that you want to number. Then you can use the Insert:Automatic Number:Section Number menu which will insert the automatic number corresponding to the section number. If you delete a photo, you will have to delete just the corresponding Section Break to ensure that the numbering sequence in the document stays correct.
Groucho
Posts: 497
Joined: 2007-03-03 09:55:06
Location: Europe

Re: automatic numbering of figures in text

Post by Groucho »

Hello, Rivka

If you haven't defined a caption style yet, you can find how to do in the manual, starting from page 60.
If you already have defined a style, instead, do like this:

1) Click inside the text (you say you get Photo No. etc., well, click on it).
2) Switch to Style sheet view (View > Style Sheet).
3) If everything is OK, you will see two blue-framed panes. Usually the top one shows the text attributes, while the bottom one shows list attributes. Focus on the second pane and click the checkbox as follows
exportedGraphic.jpg
exportedGraphic.jpg (33.83 KiB) Viewed 12074 times
Let me know if you are still having troubles.

By the way (to Martin), I'd be glad if a space or other could be substituted for the tab.

Greetings, Henry.
Groucho
Posts: 497
Joined: 2007-03-03 09:55:06
Location: Europe

Re: automatic numbering of figures in text

Post by Groucho »

If you want to (re-)number a series of occurrences of a given text, like Chapter 1, Chapter 2 and so on, you can use this simple macro:

Code: Select all

$txtRemove = Prompt input "Type in the placeholder text.", 'Note: grep-aware and case-sensitive.'

$txtInsert = Prompt input "Type in the text that should go before the number.", 'This is typically something like Chapter No. or Image No.'

$Number = 0

Select All # To ensure numbering flows top to bottom.
Select Start

While Find $txtRemove, 'E-W-i'
	$Number = $Number + 1
	Insert Text "$txtInsert $Number"
End
Upon running the macro you are prompted to type a unique text that you use for a placeholder. Then the macro prompts you to type in the text that will replace the old one. The macro renumbers all occurrences and then has them followed by an incrementing number.
For example, suppose that you have moved chapters around, so that now they are sorted this way: chapter 21, chapter 2, chapter 7… Just type chapter \d+ as a placeholder and chapter (or section, or what have you) as the new text and the macro will renumber all the chapters automatically.
Anyway it's easier done than said. Operate on a copy for safety.
I used this macro but once, in a document whose chapters had been scrambled around, but it should work OK in most cases.
It's a bit frugal. It doesn't warn you if nothing is found, for example. Feel free to improve and expand it.

Henry.
rben
Posts: 6
Joined: 2008-12-10 03:40:09

Re: automatic numbering of figures in text

Post by rben »

Hi
If what Hamid is stating is right-that it doesn't work like the old Nisus-than please do something about it-otherwise I'll have to switch to Word-which Ihate!
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: automatic numbering of figures in text

Post by martin »

Hamid is correct, you can't insert list numbers anywhere in the document; they can only be placed at the start of paragraphs. However, as Groucho/Henry explains, you can customize the list numbers so they include text, eg: the "number" under each image could read "Figure 1.", "Figure 2.", etc
rben
Posts: 6
Joined: 2008-12-10 03:40:09

Re: automatic numbering of figures in text

Post by rben »

I am sorry, but nothing really works for me. The most I can get is repeatings of no.1.
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: automatic numbering of figures in text

Post by martin »

At this point I think it's probably easiest for us to look at your file to see what's wrong exactly. You can send it to me at:
Image
Post Reply