Index » PageStream Support » General » Page numbering
Sign in to add a comment. Pages: 1
2012-01-16 12:37:30 CT #1
Ken Harvey - Yahoo Groups
From: Unknown
Registered: 2007-04-07
Posts: 27

Hi all,

Problems with the old grey cells prompt me to appeal to those of you who still
have a good functioning set.


I am producing a 'book" and want the page numbers to start at 1. I thought I
had done this in the past but because I can't remember how I did it I am not
so confident I actually did.

The document is inclusive of the cover. I know how to have a page not show the
page number but I want the first page to start at 1 (as stated). If I have the
cover and inside page not showing the page numbers, the first page starts at
3. I thought there was a way of getting around this by, for example, starting
the document at -1 which should increment to 0 and then to 1 etc etc. however
that doesn't work. It starts at 2 (I think ... don't have it running in front
of me at the moment).
Do I have to make the cover a separate document and the body another document?
Can someone please enlighten me.

Ken

2012-01-16 08:01:22 CT #2
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

But it does, Ken!

I use that approach! Negative numbers.
In menu Layout / Document Setup...:
Page Numbering: Manual: Start at Page -3 (for instance).

Now you have to create a Master Page for your document with no page
numbers for -3 till 0 ( so, 4 pages): the cover and the leading pages.
For the pages where you need the page numbers you have to create another
Master Page (could be in the same document! And mine approach is!).
See for Master Pages:http://www.pagestream.org/?action=Documents&id=698

There is another approach: chapters. Chapter without page numbering,
but: Page Numbering: Manual: Start at Page -3 (for instance). The next
chapter(s) with page numbering, with Page Numbering: Manual: Start at
Next Odd Page.

I think, grey cells, that there is another approach... But I never used
that, and I can't remember how...

Theo

Op 16-1-2012 3:37, Ken Harvey - Yahoo Groups schreef:
> Hi all,
>
> Problems with the old grey cells prompt me to appeal to those of you who still
> have a good functioning set.
>
>
> I am producing a 'book" and want the page numbers to start at 1. I thought I
> had done this in the past but because I can't remember how I did it I am not
> so confident I actually did.
>
> The document is inclusive of the cover. I know how to have a page not show the
> page number but I want the first page to start at 1 (as stated). If I have the
> cover and inside page not showing the page numbers, the first page starts at
> 3. I thought there was a way of getting around this by, for example, starting
> the document at -1 which should increment to 0 and then to 1 etc etc. however
> that doesn't work. It starts at 2 (I think ... don't have it running in front
> of me at the moment).
> Do I have to make the cover a separate document and the body another document?
> Can someone please enlighten me.
>
> Ken
>
>

--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


2012-01-16 10:23:29 CT #3
Peter Swallow
From: United Kingdom
Registered: 2006-02-07
Posts: 28

Hi Ken,

As Pagestream uses left and right master pages, I think you have to allow
for more pages, possibly four. So rather than start at -1 try -3.

At least I think that will do it, so give it a try

Peter Swallow (aka Swoop)

On 16 Jan 2012, at 02:37, Ken Harvey - Yahoo Groups wrote:

> Hi all,
>
> Problems with the old grey cells prompt me to appeal to those of you who still
> have a good functioning set.
>
>
> I am producing a 'book" and want the page numbers to start at 1. I thought I
> had done this in the past but because I can't remember how I did it I am not
> so confident I actually did.
>
> The document is inclusive of the cover. I know how to have a page not show the
> page number but I want the first page to start at 1 (as stated). If I have the
> cover and inside page not showing the page numbers, the first page starts at
> 3. I thought there was a way of getting around this by, for example, starting
> the document at -1 which should increment to 0 and then to 1 etc etc. however
> that doesn't work. It starts at 2 (I think ... don't have it running in front
> of me at the moment).
> Do I have to make the cover a separate document and the body another document?
> Can someone please enlighten me.
>
> Ken
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>


2012-01-16 09:30:51 CT #4
Deron Kazmaier
From: United States
Registered: 2006-01-29
Posts: 4639

On 1/15/12 7:37 PM, Ken Harvey - Yahoo Groups wrote:
> Hi all,
>
> Problems with the old grey cells prompt me to appeal to those of you who still
> have a good functioning set.
>
>
> I am producing a 'book" and want the page numbers to start at 1. I thought I
> had done this in the past but because I can't remember how I did it I am not
> so confident I actually did.
>
> The document is inclusive of the cover. I know how to have a page not show the
> page number but I want the first page to start at 1 (as stated). If I have the
> cover and inside page not showing the page numbers, the first page starts at
> 3. I thought there was a way of getting around this by, for example, starting
> the document at -1 which should increment to 0 and then to 1 etc etc. however
> that doesn't work. It starts at 2 (I think ... don't have it running in front
> of me at the moment).
> Do I have to make the cover a separate document and the body another document?
> Can someone please enlighten me.
>
> Ken
>

You can't have a negative number on the start page. However, if you
create a chapter and place the pages (but not the front/back) you can
set the chapter to start at page 1.

Deron


--
Deron Kazmaier - support@pagestream.org
Grasshopper LLC Publishing -http://www.pagestream.org
PageStream
DTP for Amiga, Linux, Macintosh, and Windows


2012-01-16 11:48:54 CT #5
Tim Doty
From: United States
Registered: 2006-02-06
Posts: 2939

Hi Ken,

On Jan 15, 2012, at 8:37 PM, Ken Harvey - Yahoo Groups wrote:

> Hi all,
>
> I am producing a 'book" and want the page numbers to start at 1. I thought I
> had done this in the past but because I can't remember how I did it I am not
> so confident I actually did.
>
> The document is inclusive of the cover. I know how to have a page not show the
> page number but I want the first page to start at 1 (as stated). If I have the
> cover and inside page not showing the page numbers, the first page starts at
> 3. I thought there was a way of getting around this by, for example, starting
> the document at -1 which should increment to 0 and then to 1 etc etc. however
> that doesn't work. It starts at 2 (I think ... don't have it running in front
> of me at the moment).

You are not clear on how the document is constructed. It sounds like you have a case of "everything is working as expected" -- you say the document is inclusive of the cover and the first page is numbered 3. That is to be expected. The trick others have mentioned of doing a manual start at configuration for the document of -1 is one I recall having used in the past, but here is something I think is easier: use PgS chapter abilities.

It sounds like you don't have any chapter organization so create a new one, have page numbering start at one, move all interior (numbered) pages to the new chapter and, voila, you have pagination starting at one for the document interior.

I generally do larger documents this way with the title page, table of contents, etc., at the top document level (not inside a chapter) then start the first chapter at page 1.

> Do I have to make the cover a separate document and the body another document?

Certainly not. If you want the cover included, but not in the pagination of even the introductory material (e.g., for a larger work the table of contents is often numbered in roman numerals from 1, but the cover is generally excluded) then you could put the cover in a final chapter whose master pages don't show page numbers. Personally, I find that unsatisfactory and prefer the front of the cover to be the first page of the document, but it is a valid approach.

Tim Doty

2012-01-16 20:43:41 CT #6
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

Op 16-1-2012 17:30, PageStream Support schreef:
> On 1/15/12 7:37 PM, Ken Harvey - Yahoo Groups wrote:
>> Hi all,
>>
>> Problems with the old grey cells prompt me to appeal to those of you who still
>> have a good functioning set.
>>
>>
>> I am producing a 'book" and want the page numbers to start at 1. I thought I
>> had done this in the past but because I can't remember how I did it I am not
>> so confident I actually did.
>>
>> The document is inclusive of the cover. I know how to have a page not show the
>> page number but I want the first page to start at 1 (as stated). If I have the
>> cover and inside page not showing the page numbers, the first page starts at
>> 3. I thought there was a way of getting around this by, for example, starting
>> the document at -1 which should increment to 0 and then to 1 etc etc. however
>> that doesn't work. It starts at 2 (I think ... don't have it running in front
>> of me at the moment).
>> Do I have to make the cover a separate document and the body another document?
>> Can someone please enlighten me.
>>
>> Ken
>>
> You can't have a negative number on the start page. However, if you
> create a chapter and place the pages (but not the front/back) you can
> set the chapter to start at page 1.
>
> Deron

Don't listen to Deron, because he doesn't have a clue! Wink

Yes, you can start with negative numbers!
In fact, if I remember this correctly, Deron removed that (negative
numbers) in a version. An uproar from some of us (me!).

Surely, PGS wasn't made for negative numbers for pages (see Deron's answer).
PGS uses chapters. I haven't found time to figure this out, and the
document(s) I made with 'my approach' are too large to correct this.
So, try the chapter way!

Theo

--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


2012-01-16 20:28:11 CT #7
Neil Pearson
From: United Kingdom
Registered: 2006-04-02
Posts: 132

Hi Deron,

Seeing as I have not had a reply from support - at - pagaestream dot org -
for about 1 month, original message sent to support at PageStream on
7-Dec-2011, along with other requests via the forum, and direct to you at
PageStream, and even though I have seen other people getting replies to
their problems from PageStream support, both on the main PageStream support
pages, and the Amiga support pages for PageStream, I feel it is getting to
the point where I am running out of opportunities for you DERON or anyone at
PageStream support to reply to my reasonable requests, of asking you for
some support for my Amiga version of PageStream - that is still not
supported with a full release that works under OS3.x

A good few years ago I paid for the Amiga version of PageStream for OS4
PPC - to date that version has not seen the light of day as a working
useable product.

I am using PageStream 4.1.5.6 which is OK, but either the 68k version
5.x.x.x needs sorting out soon, or I feel I am going to need my version
migrating to the Windows based version of PageStream 5.x.x.x., which you
offered me a while ago, but I have been hanging on waiting for the Amiga
version to materialise, which it hasn't. This is so that I get some value
out of what I paid for it all those years ago, which I have basically had no
use of, unless you count frustration and continual waiting as use that is !!

Have you any realistic idea how long it will take for the 68k version to see
the light of day, or will you migrate/transfer my licence for my Amiga
version 5, or preferably my Amiga OS4 PPC Pro version to the Windows
PageStream Pro version 5 in the meantime anyway?

This lack of response is not like you, and I feel embarrassed for you that I
am having to post this request openly in a forum for you to respond to, but
you leave me little alternative as you are not replying to my reasonable
request for a migration to the Windows based version of PageStream that you
offered me a while ago, as a temporary stop-gap until the Amiga version sees
the light of day.

I will ask for a transfer of my licence back from the Windows version to the
Amiga version once I am happy that the Amiga version can do all it is
supposed to do, as a stable version.

I would really love to be able to utilise PageStream 5 on my Classic Amiga,
but this delay has frustrated me to this point that I am requesting the
transfer of my Amiga PageStream licence to a Windows based licence.

Hope to hear back from you soon,

Neil Pearson


2012-01-16 14:40:41 CT #8
Deron Kazmaier
From: United States
Registered: 2006-01-29
Posts: 4639

Neil,

I've answered everyone I can help. You have already received all the
answers I have. Asking multiple times doesn't change a thing.

As to asking for a Windows version, I've already taken care of that
earlier today.

Nothing to be embarrassed for me about, so please don't waste your
compassion on a non-issue.

Deron


On 1/16/12 1:28 PM, Neil Pearson wrote:
> Hi Deron,
>
> Seeing as I have not had a reply from support - at - pagaestream dot org -
> for about 1 month, original message sent to support at PageStream on
> 7-Dec-2011, along with other requests via the forum, and direct to you at
> PageStream, and even though I have seen other people getting replies to
> their problems from PageStream support, both on the main PageStream support
> pages, and the Amiga support pages for PageStream, I feel it is getting to
> the point where I am running out of opportunities for you DERON or anyone at
> PageStream support to reply to my reasonable requests, of asking you for
> some support for my Amiga version of PageStream - that is still not
> supported with a full release that works under OS3.x
>
> A good few years ago I paid for the Amiga version of PageStream for OS4
> PPC - to date that version has not seen the light of day as a working
> useable product.
>
> I am using PageStream 4.1.5.6 which is OK, but either the 68k version
> 5.x.x.x needs sorting out soon, or I feel I am going to need my version
> migrating to the Windows based version of PageStream 5.x.x.x., which you
> offered me a while ago, but I have been hanging on waiting for the Amiga
> version to materialise, which it hasn't. This is so that I get some value
> out of what I paid for it all those years ago, which I have basically had no
> use of, unless you count frustration and continual waiting as use that is !!
>
> Have you any realistic idea how long it will take for the 68k version to see
> the light of day, or will you migrate/transfer my licence for my Amiga
> version 5, or preferably my Amiga OS4 PPC Pro version to the Windows
> PageStream Pro version 5 in the meantime anyway?
>
> This lack of response is not like you, and I feel embarrassed for you that I
> am having to post this request openly in a forum for you to respond to, but
> you leave me little alternative as you are not replying to my reasonable
> request for a migration to the Windows based version of PageStream that you
> offered me a while ago, as a temporary stop-gap until the Amiga version sees
> the light of day.
>
> I will ask for a transfer of my licence back from the Windows version to the
> Amiga version once I am happy that the Amiga version can do all it is
> supposed to do, as a stable version.
>
> I would really love to be able to utilise PageStream 5 on my Classic Amiga,
> but this delay has frustrated me to this point that I am requesting the
> transfer of my Amiga PageStream licence to a Windows based licence.
>
> Hope to hear back from you soon,
>
> Neil Pearson
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>


--
Happy Trails,
Deron Kazmaier deron@dogstarkennel.com
KD0AYO Western South Dakota
Dog Star Kennelhttp://www.dogstarkennel.com
---
Racing AKC Sepp-Star Seppala Siberian Husky Sled Dogs


2012-01-17 20:25:37 CT #9
Ken Harvey - Yahoo Groups
From: Unknown
Registered: 2007-04-07
Posts: 27

Hi all

Thanks to all who responded.

On 17/01/12 3:48 AM, Tim Doty wrote:
> Hi Ken,
>
> On Jan 15, 2012, at 8:37 PM, Ken Harvey - Yahoo Groups wrote:
>
>> Hi all,
>>
>> I am producing a 'book" and want the page numbers to start at 1. I thought I
>> had done this in the past but because I can't remember how I did it I am not
>> so confident I actually did.
>>
>> The document is inclusive of the cover. I know how to have a page not show the
>> page number but I want the first page to start at 1 (as stated). If I have the
>> cover and inside page not showing the page numbers, the first page starts at
>> 3. I thought there was a way of getting around this by, for example, starting
>> the document at -1 which should increment to 0 and then to 1 etc etc. however
>> that doesn't work. It starts at 2 (I think ... don't have it running in front
>> of me at the moment).
>
> You are not clear on how the document is constructed. It sounds like you have a case of "everything is working as expected" -- you say the document is inclusive of the cover and the first page is numbered 3. That is to be expected. The trick others have mentioned of doing a manual start at configuration for the document of -1 is one I recall having used in the past, but here is something I think is easier: use PgS chapter abilities.

Well I was "volunteered" to produce this book (more properly booklet) which is
a history to celebrate the centenary of our Church. I wanted to keep it as
simple as possible so created the document with page numbering starting at 1
for the cover and because one doesn't have a page number appear on the cover I
just "hid" those things (Title and page numbers). However during discussions
it was determined that it should be done "properly" and have the first part of
the main body be the starting page number 1. (There were to be no chapters).
So thinking I had done this in the past by using negative numbers I tried and
came unstuck, calling for help here.

>
> It sounds like you don't have any chapter organization so create a new one, have page numbering start at one, move all interior (numbered) pages to the new chapter and, voila, you have pagination starting at one for the document interior.
>

Well I spent most of this morning and into the afternoon going round in
circles trying to do the Chapter/Master page tricks as suggested. I am
thankful for the "revert" feature, must have used it 5 or 6 times at least.
What I found was that you can't move or drag the "default master page" into
the new chapter and substitute a new master page at the document level.

Anyway I managed in the end to produce the result I was after.

So now I have the cover and its inside plus the "Foreward" and its reverse
side (a blank page) as having no page numbers and the main body through to the
end with page numbers except for the back page and its inside where I just set
the "do not show".

Hope you can follow all that.

> I generally do larger documents this way with the title page, table of contents, etc., at the top document level (not inside a chapter) then start the first chapter at page 1.
>
>> Do I have to make the cover a separate document and the body another document?
>
> Certainly not. If you want the cover included, but not in the pagination of even the introductory material (e.g., for a larger work the table of contents is often numbered in roman numerals from 1, but the cover is generally excluded) then you could put the cover in a final chapter whose master pages don't show page numbers. Personally, I find that unsatisfactory and prefer the front of the cover to be the first page of the document, but it is a valid approach.
>
> Tim Doty
>
It's a work in progress but I needed to have that matter sorted before the
next Committee meeting. Once it's finalised the only thing I will have to
worry about is the imposition. If I get stuck I'll call for help.


Ken

>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>


2012-01-17 14:31:34 CT #10
Ernest Unrau
From: Canada
Registered: 2006-04-08
Posts: 52

--- In PageStreamSupport@yahoogroups.com, PageStream Support <deron@...> wrote:

> You can't have a negative number on the start page. However, if you
> create a chapter and place the pages (but not the front/back) you can
> set the chapter to start at page 1.
>
> Deron
>


You're mistaken on that - unless you've changed the behavior since the 5.0.5.8 demo version.

Go to menu item "Layout / Document Setup", set the "Page Numbering" to "Manual: Start at Page" and manually enter the starting page number in the entry box; to "-1" if you wish.

Of course, another approach would be to start a chapter and have page numbering commence at the desired start page number


2012-01-17 10:18:04 CT #11
Deron Kazmaier
From: United States
Registered: 2006-01-29
Posts: 4639

On 1/17/12 7:31 AM, saskwatch wrote:
>
> --- In PageStreamSupport@yahoogroups.com, PageStream Support<deron@...> wrote:
>
>> You can't have a negative number on the start page. However, if you
>> create a chapter and place the pages (but not the front/back) you can
>> set the chapter to start at page 1.
>>
>> Deron
>>
>
> You're mistaken on that - unless you've changed the behavior since the 5.0.5.8 demo version.
>
> Go to menu item "Layout / Document Setup", set the "Page Numbering" to "Manual: Start at Page" and manually enter the starting page number in the entry box; to "-1" if you wish.
>
> Of course, another approach would be to start a chapter and have page numbering commence at the desired start page number
>
>

Well, I could be more clear. The code does not enforce positive numbers,
but the variable for page numbers is defined as an _unsigned_ 32bit
number. Compilers/platforms may behave differently when adding unsigned
numbers that are actually signed.

Since I doubt anyone would care if PageStream "only" supported 2+
billion page documents instead of 4+ billion, it would not hurt to
change that to signed and properly allow/support negative page starts.

However, the important part here is that the original poster tried
negative numbers and it didn't work.

Deron

--
Deron Kazmaier - support@pagestream.org
Grasshopper LLC Publishing -http://www.pagestream.org
PageStream
DTP for Amiga, Linux, Macintosh, and Windows


2012-01-17 11:49:58 CT #12
Tim Doty
From: United States
Registered: 2006-02-06
Posts: 2939


On Jan 17, 2012, at 11:18 AM, PageStream Support wrote:

> Well, I could be more clear. The code does not enforce positive numbers,
> but the variable for page numbers is defined as an _unsigned_ 32bit
> number. Compilers/platforms may behave differently when adding unsigned
> numbers that are actually signed.

I'm pretty sure that it is passing through to a signed int already. For example, in the interface the manual start at accepts and shows negative numbers. IIRC on intel chips a signed int uses the high bit to indicate negative using two's complement. Thus a -1 signed int coerced to unsigned becomes the largest possible positive integer. The thing is, if that unsigned int is coerced back into a signed integer it is still -1.

Another point, if -1 is entered and becomes the largest possible positive int and then, as an unsigned int, it is incremented by one an overflow happens though the result is zero. I believe if the overflow is not checked for you simply have 0. Similarly, incrementing a signed int -2 as an unsigned int, then coercing back to signed results in a -1. This is a nice feature of two's complement.

Point being, PgS can store it internally as an unsigned int, but if it is coerced to a signed int when it comes to being displayed on the page it is effectively a signed int internally.

> However, the important part here is that the original poster tried
> negative numbers and it didn't work.


Unless he is seeing absurdly high page numbers from setting a start at negative page the pagination is working correctly. If he is setting the start at negative and it is still numbering pages from one… I have to wonder if he has things in chapters and is setting the document pagination. I seem to recall PgS mucking with the default start at values for chapters though I don't have the time ATM to test for behavior.

> Since I doubt anyone would care if PageStream "only" supported 2+
> billion page documents instead of 4+ billion, it would not hurt to
> change that to signed and properly allow/support negative page starts.

Yeah, although as noted above I believe your code is already coercing it to a signed int.

Tim Doty
From ken300@kgh44.info Tue Jan 17 16:19:33 2012
Return-Path: <ken300@kgh44.info>
X-Sender: ken300@kgh44.info
X-Apparently-To: PageStreamSupport@yahoogroups.com
X-Received: (qmail 10874 invoked from network); 18 Jan 2012 00:19:32 -0000
X-Received: from unknown (98.137.34.46)
by m14.grp.sp2.yahoo.com with QMQP; 18 Jan 2012 00:19:32 -0000
X-Received: from unknown (HELO ipmail06.adl2.internode.on.net) (150.101.137.129)
by mta3.grp.sp2.yahoo.com with SMTP; 18 Jan 2012 00:19:32 -0000
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: At0KAMQMFk920Dq3/2dsb2JhbABErEUIfYEGgW4EAQEEATIBIzMLGAkTAw8JAwIBAgEnHhMIAQEXhS0HgiIJt1GCVYZZAQEICRQJBQEFCAVNCgQBAgEBCAEBAQMWFQMBBgwHAgIDJwkQAQQLDwsDAoE6AQUBAgMHAQQBAQEBBAEBAQEUAgYBg2gEhRaHfId/klM
X-Received: from ppp118-208-58-183.lns20.bne1.internode.on.net (HELO macpro.harvey) ([118.208.58.183])
by ipmail06.adl2.internode.on.net with ESMTP; 18 Jan 2012 10:49:31 +1030
Message-ID: <4F161010.2090805@kgh44.info>
Date: Wed, 18 Jan 2012 10:19:28 +1000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: PageStreamSupport@yahoogroups.com
References: <jf40o6+k117@eGroups.com> <4F15AD4C.7040600@pagestream.org> <E6EACE9A-96A7-49DD-AA07-9B651E404C41@mac.com>
In-Reply-To: <E6EACE9A-96A7-49DD-AA07-9B651E404C41@mac.com>
X-Enigmail-Version: 1.3.4
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
X-Originating-IP: 150.101.137.129
X-eGroups-Msg-Info: 1:12:0:0:0
From: Ken Harvey - Yahoo Groups <ken300@kgh44.info>
Reply-To: ken300@kgh44.info
Subject: Re: [PageStreamSupport] Page numbering
X-Yahoo-Group-Post: member; u01913351; y=fmUkQsTeYUGikBZVNnXR1MKmGDBKeKfEPb9JxwjOld3B-Ek
X-Yahoo-Profile: kgh_2004

Hi all

Looks like I may have opened "a can o' worms"

It seems to me that with so many here who are saying it should work or
has/does work for them then my memory hasn't failed me to the extent I thought
it had.

See my previous reply for more details of where I ended up.

On 18/01/12 3:49 AM, Tim Doty wrote:
>
> On Jan 17, 2012, at 11:18 AM, PageStream Support wrote:
>
>> Well, I could be more clear. The code does not enforce positive numbers,
>> but the variable for page numbers is defined as an _unsigned_ 32bit
>> number. Compilers/platforms may behave differently when adding unsigned
>> numbers that are actually signed.
>
> I'm pretty sure that it is passing through to a signed int already. For example, in the interface the manual start at accepts and shows negative numbers. IIRC on intel chips a signed int uses the high bit to indicate negative using two's complement. Thus a -1 signed int coerced to unsigned becomes the largest possible positive integer. The thing is, if that unsigned int is coerced back into a signed integer it is still -1.
>
> Another point, if -1 is entered and becomes the largest possible positive int and then, as an unsigned int, it is incremented by one an overflow happens though the result is zero. I believe if the overflow is not checked for you simply have 0. Similarly, incrementing a signed int -2 as an unsigned int, then coercing back to signed results in a -1. This is a nice feature of two's complement.
>
> Point being, PgS can store it internally as an unsigned int, but if it is coerced to a signed int when it comes to being displayed on the page it is effectively a signed int internally.
>
>> However, the important part here is that the original poster tried
>> negative numbers and it didn't work.
>
>
> Unless he is seeing absurdly high page numbers from setting a start at negative page the pagination is working correctly. If he is setting the start at negative and it is still numbering pages from one… I have to wonder if he has things in chapters and is setting the document pagination. I seem to recall PgS mucking with the default start at values for chapters though I don't have the time ATM to test for behavior.
>
My previous email gives more details about the document but to summarise

The original document was created without chapters and no facing pages. The
master page (being the default) was setup with "objects" including a "rule"
and text of the document name and the page numbering.
Naturally the cover and inside should not show those features so I just set
those two pages to not show the objects. The result of that was that the cover
was page 1 (invisible), inside was page 2 (again invisible) and the first
"real" page was page 3.
So when it came out that the first "real" page should be page 1 I figured the
negative number approach was the solution. I tried -1 thinking it would go -1,
0, 1 but when that didn't work I tried -2 and -3, neither of those worked.
That was about when I put forth my appeal to all you wonderful people.

It's been a long time since I was active on the list, so it's good to know
help is still available to a silent observer.

As to "absurdly high page numbers" the document was only 24 pages when I first
posted but is now 28 pages.

Sorry my summary grew to probably longer than in my previous email. I tend to
"waffle"


Ken

>> Since I doubt anyone would care if PageStream "only" supported 2+
>> billion page documents instead of 4+ billion, it would not hurt to
>> change that to signed and properly allow/support negative page starts.
>
> Yeah, although as noted above I believe your code is already coercing it to a signed int.
>
> Tim Doty

2012-01-18 07:22:12 CT #13
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

Ken,

I send you a PM.

Theo

Op 18-1-2012 1:19, Ken Harvey - Yahoo Groups schreef:
> Hi all
>
> Looks like I may have opened "a can o' worms"
>
> It seems to me that with so many here who are saying it should work or
> has/does work for them then my memory hasn't failed me to the extent I thought
> it had.
>
> See my previous reply for more details of where I ended up.
>
>
>
> On 18/01/12 3:49 AM, Tim Doty wrote:
>> On Jan 17, 2012, at 11:18 AM, PageStream Support wrote:
>>
>>> Well, I could be more clear. The code does not enforce positive numbers,
>>> but the variable for page numbers is defined as an _unsigned_ 32bit
>>> number. Compilers/platforms may behave differently when adding unsigned
>>> numbers that are actually signed.
>> I'm pretty sure that it is passing through to a signed int already. For example, in the interface the manual start at accepts and shows negative numbers. IIRC on intel chips a signed int uses the high bit to indicate negative using two's complement. Thus a -1 signed int coerced to unsigned becomes the largest possible positive integer. The thing is, if that unsigned int is coerced back into a signed integer it is still -1.
>>
>> Another point, if -1 is entered and becomes the largest possible positive int and then, as an unsigned int, it is incremented by one an overflow happens though the result is zero. I believe if the overflow is not checked for you simply have 0. Similarly, incrementing a signed int -2 as an unsigned int, then coercing back to signed results in a -1. This is a nice feature of two's complement.
>>
>> Point being, PgS can store it internally as an unsigned int, but if it is coerced to a signed int when it comes to being displayed on the page it is effectively a signed int internally.
>>
>>> However, the important part here is that the original poster tried
>>> negative numbers and it didn't work.
>>
>> Unless he is seeing absurdly high page numbers from setting a start at negative page the pagination is working correctly. If he is setting the start at negative and it is still numbering pages from one… I have to wonder if he has things in chapters and is setting the document pagination. I seem to recall PgS mucking with the default start at values for chapters though I don't have the time ATM to test for behavior.
>>
> My previous email gives more details about the document but to summarise
>
> The original document was created without chapters and no facing pages. The
> master page (being the default) was setup with "objects" including a "rule"
> and text of the document name and the page numbering.
> Naturally the cover and inside should not show those features so I just set
> those two pages to not show the objects. The result of that was that the cover
> was page 1 (invisible), inside was page 2 (again invisible) and the first
> "real" page was page 3.
> So when it came out that the first "real" page should be page 1 I figured the
> negative number approach was the solution. I tried -1 thinking it would go -1,
> 0, 1 but when that didn't work I tried -2 and -3, neither of those worked.
> That was about when I put forth my appeal to all you wonderful people.
>
> It's been a long time since I was active on the list, so it's good to know
> help is still available to a silent observer.
>
> As to "absurdly high page numbers" the document was only 24 pages when I first
> posted but is now 28 pages.
>
> Sorry my summary grew to probably longer than in my previous email. I tend to
> "waffle"
>
>
> Ken
>
>>> Since I doubt anyone would care if PageStream "only" supported 2+
>>> billion page documents instead of 4+ billion, it would not hurt to
>>> change that to signed and properly allow/support negative page starts.
>> Yeah, although as noted above I believe your code is already coercing it to a signed int.
>>
>> Tim Doty
>
>


--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


2012-01-18 19:58:02 CT #14
Ken Harvey - Yahoo Groups
From: Unknown
Registered: 2007-04-07
Posts: 27

On 18/01/12 4:22 PM, Theo Zweers wrote:
> Ken,
>
> I send you a PM.
>
> Theo
>
> Op 18-1-2012 1:19, Ken Harvey - Yahoo Groups schreef:
[ .... snip .... ]

Got it thanks Theo.

Just as an experiment I created a new document with 7 pages using defaults.

Using the drop down menu for "Document Setup" I set in "Page numbering",
"Manual: Start at Page" with the following results :-

0, -1 or -2 pages were numbered 0 1 2 3 4 5 6
-3 ........ " " " -1 0 1 2 3 4 5
-4 ........ " " " -2 -1 0 1 2 3 4
-5 ........ " " " -3 -2 -1 0 1 2 3

Can't say that means anything but there you have it.


Ken


2012-01-18 12:55:43 CT #15
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

You're welcome!

And? Does it work for you?

Oh! You thought that it works easy. Well, in a way.
-3 says that the front page is page -3. It takes four (-3, -2, -1, 0)
pages before the page number is 1.
And I just did this with my Windows PGS 5.0.5.8.
What do you use? Did my document does the same faulty numbering with
your PGS? It should show as first page number 1. Anything else is wrong
(download the pdf).

Theo

Op 18-1-2012 10:58, Ken Harvey - Yahoo Groups schreef:
> On 18/01/12 4:22 PM, Theo Zweers wrote:
>> Ken,
>>
>> I send you a PM.
>>
>> Theo
>>
>> Op 18-1-2012 1:19, Ken Harvey - Yahoo Groups schreef:
> [ .... snip .... ]
>
> Got it thanks Theo.
>
> Just as an experiment I created a new document with 7 pages using defaults.
>
> Using the drop down menu for "Document Setup" I set in "Page numbering",
> "Manual: Start at Page" with the following results :-
>
> 0, -1 or -2 pages were numbered 0 1 2 3 4 5 6
> -3 ........ " " " -1 0 1 2 3 4 5
> -4 ........ " " " -2 -1 0 1 2 3 4
> -5 ........ " " " -3 -2 -1 0 1 2 3
>
> Can't say that means anything but there you have it.
>
>
> Ken
>
--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


2012-01-19 11:25:45 CT #16
Ken Harvey - Yahoo Groups
From: Unknown
Registered: 2007-04-07
Posts: 27

On 18/01/12 9:55 PM, Theo Zweers wrote:
> You're welcome!
>

Hi Theo

I have replied privately.
> And? Does it work for you?
>
> Oh! You thought that it works easy. Well, in a way.
> -3 says that the front page is page -3. It takes four (-3, -2, -1, 0)
> pages before the page number is 1.

I understand that but the reason I put the information here was if someone had
any theories. You notice that the actual page numbers seem to start 2 less
than what I specify. eg Set the start page to -5 and it seems to do a phantom
(non-existant) page of -5 and back -4 with the first "real" page starting at
-3. In other words if I set it to -5 as the start page the first page should
be numbered -5 not -3, if you follow.

Ken

> And I just did this with my Windows PGS 5.0.5.8.
> What do you use? Did my document does the same faulty numbering with
> your PGS? It should show as first page number 1. Anything else is wrong
> (download the pdf).
>
> Theo
>
> Op 18-1-2012 10:58, Ken Harvey - Yahoo Groups schreef:
>> On 18/01/12 4:22 PM, Theo Zweers wrote:
>>> Ken,
>>>
>>> I send you a PM.
>>>
>>> Theo
>>>
>>> Op 18-1-2012 1:19, Ken Harvey - Yahoo Groups schreef:
>> [ .... snip .... ]
>>
>> Got it thanks Theo.
>>
>> Just as an experiment I created a new document with 7 pages using defaults.
>>
>> Using the drop down menu for "Document Setup" I set in "Page numbering",
>> "Manual: Start at Page" with the following results :-
>>
>> 0, -1 or -2 pages were numbered 0 1 2 3 4 5 6
>> -3 ........ " " " -1 0 1 2 3 4 5
>> -4 ........ " " " -2 -1 0 1 2 3 4
>> -5 ........ " " " -3 -2 -1 0 1 2 3
>>
>> Can't say that means anything but there you have it.
>>
>>
>> Ken
>>


2012-01-20 09:12:35 CT #17
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

Hi again Ken!

Op 19-1-2012 2:25, Ken Harvey - Yahoo Groups schreef:
> On 18/01/12 9:55 PM, Theo Zweers wrote:
>> You're welcome!
>>
> Hi Theo
>
> I have replied privately.
>> And? Does it work for you?
>>
>> Oh! You thought that it works easy. Well, in a way.
>> -3 says that the front page is page -3. It takes four (-3, -2, -1, 0)
>> pages before the page number is 1.
> I understand that but the reason I put the information here was if someone had
> any theories. You notice that the actual page numbers seem to start 2 less
> than what I specify. eg Set the start page to -5 and it seems to do a phantom
> (non-existant) page of -5 and back -4 with the first "real" page starting at
> -3. In other words if I set it to -5 as the start page the first page should
> be numbered -5 not -3, if you follow.
>
> Ken
>
>> [...]
>>
>> Just as an experiment I created a new document with 7 pages using defaults.
>>
>> Using the drop down menu for "Document Setup" I set in "Page numbering",
>> "Manual: Start at Page" with the following results :-
>>
>> 0, -1 or -2 pages were numbered 0 1 2 3 4 5 6
>> -3 ........ " " " -1 0 1 2 3 4 5
>> -4 ........ " " " -2 -1 0 1 2 3 4
>> -5 ........ " " " -3 -2 -1 0 1 2 3

When I give the number 0, I get page 0, 1, 2... (I have to a do a
refresh to see this: Refresh Window in the Scripts menu)
For -1, I get -1, 0, 1, 2...

For what I see it is a Mac PGS fault/error. But can you address Deron
about this? Sure you can.
From what Deron says: it is not the way you should do this (use
chapters). So he might be saying, if it works for you, OK. If it don't,
well, bad luck.


Theo

--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


2012-01-20 09:52:06 CT #18
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

Uh, uh. I was in the private mode (PM, not PGSsupport mode).

And I just found out that Ken is using PGS 4 for the Mac.

Theo

Op 20-1-2012 9:12, Theo Zweers schreef:
> Hi again Ken!
>
> Op 19-1-2012 2:25, Ken Harvey - Yahoo Groups schreef:
>> On 18/01/12 9:55 PM, Theo Zweers wrote:
>>> You're welcome!
>>>
>> Hi Theo
>>
>> I have replied privately.
>>> And? Does it work for you?
>>>
>>> Oh! You thought that it works easy. Well, in a way.
>>> -3 says that the front page is page -3. It takes four (-3, -2, -1, 0)
>>> pages before the page number is 1.
>> I understand that but the reason I put the information here was if
>> someone had
>> any theories. You notice that the actual page numbers seem to start 2
>> less
>> than what I specify. eg Set the start page to -5 and it seems to do a
>> phantom
>> (non-existant) page of -5 and back -4 with the first "real" page
>> starting at
>> -3. In other words if I set it to -5 as the start page the first page
>> should
>> be numbered -5 not -3, if you follow.
>>
>> Ken
>>
>>> [...]
>>>
>>> Just as an experiment I created a new document with 7 pages using
>>> defaults.
>>>
>>> Using the drop down menu for "Document Setup" I set in "Page
>>> numbering",
>>> "Manual: Start at Page" with the following results :-
>>>
>>> 0, -1 or -2 pages were numbered 0 1 2 3 4 5 6
>>> -3 ........ " " " -1 0 1 2 3 4 5
>>> -4 ........ " " " -2 -1 0 1 2 3 4
>>> -5 ........ " " " -3 -2 -1 0 1 2 3
>
> When I give the number 0, I get page 0, 1, 2... (I have to a do a
> refresh to see this: Refresh Window in the Scripts menu)
> For -1, I get -1, 0, 1, 2...
>
> For what I see it is a Mac PGS fault/error. But can you address Deron
> about this? Sure you can.
> From what Deron says: it is not the way you should do this (use
> chapters). So he might be saying, if it works for you, OK. If it
> don't, well, bad luck.
>
>
> Theo
>


--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


2012-01-20 22:39:48 CT #19
Ken Harvey - Yahoo Groups
From: Unknown
Registered: 2007-04-07
Posts: 27

On 20/01/12 6:52 PM, Theo Zweers wrote:
> Uh, uh. I was in the private mode (PM, not PGSsupport mode).
>
> And I just found out that Ken is using PGS 4 for the Mac.

Actually 4.1.5.6 for Amiga OS 3.x
Sorry to confuse you with the screen shots. It was running in an E-UAE
environment.

Ken

>
> Theo
>
> Op 20-1-2012 9:12, Theo Zweers schreef:
>> Hi again Ken!
>>
>> Op 19-1-2012 2:25, Ken Harvey - Yahoo Groups schreef:
>>> On 18/01/12 9:55 PM, Theo Zweers wrote:
>>>> You're welcome!
>>>>
>>> Hi Theo
>>>
>>> I have replied privately.
>>>> And? Does it work for you?
>>>>
>>>> Oh! You thought that it works easy. Well, in a way.
>>>> -3 says that the front page is page -3. It takes four (-3, -2, -1, 0)
>>>> pages before the page number is 1.
>>> I understand that but the reason I put the information here was if
>>> someone had
>>> any theories. You notice that the actual page numbers seem to start 2
>>> less
>>> than what I specify. eg Set the start page to -5 and it seems to do a
>>> phantom
>>> (non-existant) page of -5 and back -4 with the first "real" page
>>> starting at
>>> -3. In other words if I set it to -5 as the start page the first page
>>> should
>>> be numbered -5 not -3, if you follow.
>>>
>>> Ken
>>>
>>>> [...]
>>>>
>>>> Just as an experiment I created a new document with 7 pages using
>>>> defaults.
>>>>
>>>> Using the drop down menu for "Document Setup" I set in "Page
>>>> numbering",
>>>> "Manual: Start at Page" with the following results :-
>>>>
>>>> 0, -1 or -2 pages were numbered 0 1 2 3 4 5 6
>>>> -3 ........ " " " -1 0 1 2 3 4 5
>>>> -4 ........ " " " -2 -1 0 1 2 3 4
>>>> -5 ........ " " " -3 -2 -1 0 1 2 3
>>
>> When I give the number 0, I get page 0, 1, 2... (I have to a do a
>> refresh to see this: Refresh Window in the Scripts menu)
>> For -1, I get -1, 0, 1, 2...
>>
>> For what I see it is a Mac PGS fault/error. But can you address Deron
>> about this? Sure you can.
>> From what Deron says: it is not the way you should do this (use
>> chapters). So he might be saying, if it works for you, OK. If it
>> don't, well, bad luck.
>>
>>
>> Theo
>>
>
>


2012-01-22 19:00:25 CT #20
Ernest Unrau
From: Canada
Registered: 2006-04-08
Posts: 52

--- In PageStreamSupport@yahoogroups.com, Ken Harvey - Yahoo Groups <ken300@...> wrote:
>
> On 20/01/12 6:52 PM, Theo Zweers wrote:
> > Uh, uh. I was in the private mode (PM, not PGSsupport mode).
> >
> > And I just found out that Ken is using PGS 4 for the Mac.
>
> Actually 4.1.5.6 for Amiga OS 3.x
> Sorry to confuse you with the screen shots. It was running in an E-UAE
> environment.
>
> Ken


That explains it! No wonder you can't get it to work. That version
for Amiga won't let you set negative numbers. You will have to
break it into chapters where you can set the starting number for
the chapter.

2012-01-23 08:00:36 CT #21
T.J. Zweers
From: Netherlands
Registered: 2006-02-07
Posts: 331

Op 22-1-2012 20:00, saskwatch schreef:
>
> --- In PageStreamSupport@yahoogroups.com, Ken Harvey - Yahoo Groups<ken300@...> wrote:
>> On 20/01/12 6:52 PM, Theo Zweers wrote:
>>> Uh, uh. I was in the private mode (PM, not PGSsupport mode).
>>>
>>> And I just found out that Ken is using PGS 4 for the Mac.
>> Actually 4.1.5.6 for Amiga OS 3.x
>> Sorry to confuse you with the screen shots. It was running in an E-UAE
>> environment.
>>
>> Ken
>
> That explains it! No wonder you can't get it to work. That version
> for Amiga won't let you set negative numbers. You will have to
> break it into chapters where you can set the starting number for
> the chapter.
>

Thanks for clearing that out Saskwatch.
I wasn't in my normal behavior lately, sickish. And I didn't even see
that Ken wrote that it is PGS for the Amiga.
Looking back at the pictures Ken send me, I see clearly an Apple, then
E-UAE, and a lot of Apple icons at the bottom.

I've had the Amiga PGS running in UAE for Windows years and years ago,
and didn't know there was an Amiga emulator for the Apple too (I know
about a Windows emulator).

Theo

--
PageStream Pro 5.0.5.8 on Windows 7 Pro 32 bits (Dutch), Python 2.7.1 and PySide 1.0.5
AMD Athlon(tm) II X2 215 Processor at 2.70 GHz and 2 GB RAM


Sign in to add a comment. Pages: 1
Index » PageStream Support » General » Page numbering

This topic is closed due to inactivity.