Rank: Advanced Member Groups: Registered
Joined: 05/03/2009(UTC) Posts: 433 Location: USA Was thanked: 17 time(s) in 15 post(s)
|
Is there a way of changing or updating a "field"? In my case, I want SMATH page number (PageNum) to start on page 3 as I have a document cover sheet for pages 1 and 2. I may have missed this in the other topics, but I could not find a solution. It's a follow up to https://en.smath.com/for...7228_Page-numbering.aspxBTW, I've never understood how that "code snippet" (link) is started Edited by user 5 years ago
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: ElSid In my case, I want SMATH page number (PageNum) to start on page 3 as I have a document cover sheet for pages 1 and 2. I The Windows time stamp has legal value, now: two pages are missing => case closed ... next.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 05/03/2009(UTC) Posts: 433 Location: USA Was thanked: 17 time(s) in 15 post(s)
|
Jean, Nothing to do with legal value. Cover sheets are pages 1 and 2 and the calculations start on page 3. I need SMath to allow me to start the page footer field as page 3.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: ElSid Jean, Nothing to do with legal value.Cover sheets are pages 1 and 2 and the calculations start on page 3.I need SMath to allow me to start the page footer field as page 3. Collapse pages [1, 2] ... document is native/natural starting @ effective calculations page 1. Why not have the dead abstract pages [1, 2] at the end of document ?
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: Jean Giraud Collapse pages [1, 2] ... document is native/natural starting @ effective calculations page 1. Why not have the dead abstract pages [1, 2] at the end of document ? &[PAGENUM+2] / &[COUNT] so ... the 4 pages printed document footer runs over 2,3,4 5
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 05/03/2009(UTC) Posts: 433 Location: USA Was thanked: 17 time(s) in 15 post(s)
|
That is the problem. I cannot adjust the [PAGENUM] field in the footer
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: ElSid That is the problem.I cannot adjust the [PAGENUM] field in the footer Attach a typical document or take some from the Forum.
|
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,626 Was thanked: 1993 time(s) in 670 post(s)
|
Currently it is not possible. Will implement it soon.
|
1 user thanked Andrey Ivashov for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: ElSid Nothing to do with legal value.Cover sheets are pages 1 and 2 and the calculations start on page 3.I need SMath to allow me to start the page footer field as page 3. The way you want is hiding page 1, 2 If they have nothing to do with the calculations, than zap these two pages or have them as separate introduction "Read first" document. It as more than legal value as it won't even reach Tribunal, why? Because Jean doing QA will recycle the document starting @ page 3 If you have removed 2 pages, the document is not tracable. What are they sheets 1, 2 ? How can I know ? A birthday romance ? Source formulation ... per say: Matlab, Mathcad ... Assume the cover sheets are a Mathcad snippet image, it may very well affect the Smath coded calculations. On the other hand, lot many source formulation are in book style that have to be converted executable math style. Typical from Papers, especially modern Papers with 100's references. In short: you are asking Smath have a feature to hide information. Who is going to vote for that ? Pooling open ...
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 12/03/2011(UTC) Posts: 101 Location: Chicago
Was thanked: 16 time(s) in 7 post(s)
|
I know this is a bit dated at this point, but I have dealt with this too. In my case, the first few pages are from another source. SMath starts on page 3. I fake it by adding as many separators as I need at the top of the document and collapsing them. Its a kludge but it works. Originally Posted by: ElSid That is the problem. I cannot adjust the [PAGENUM] field in the footer |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 150 Location: Wisconsin Was thanked: 71 time(s) in 45 post(s)
|
Greetings, There is a simple solution; In your text field, simply type 「 page \[PAGENUM[2]]\ of \[COUNT[2]]\」 to get --> 「 page 3 of 3」. That is: 「\[PAGENUM[n]]\」 where 「n」 = The page number of the page BEFORE your 'first' Smath Page. [ NOTES: ]- From Trial and error, I discovered that:
Negative numbers are not supported.Decimals are not supportedPadding is supported:- Padding with zeros (i.e. 00002) will report at least 5 Digits starting at '3'
- Padding with letters (i.e. 0xxx2) will report at least 5 Digits, but starting at '1'
For you math nerds: Looks like its limit is the number 2,147,483,647 (the eighth Mersenne prime) at which point it rolls over from -2147483648 --> 1 (for a 1/1 pages)- 「\[COUNT[2147483646]]\」 --> 「2147483647」
- 「\[COUNT[2147483647]]\」 --> 「-2147483648」
- 「\[COUNT[2147483648]]\」 --> 「0000000001」
- NOTE: if you start at a high number and it rolls over to [neg], it will not revert back to zero, but rather just add +1 to the negative number (i.e., 「+2147483647」 --> 「-2147483648」 --> 「-2147483647」 --> ...
Spaces and Special Characters are not supported (e.g., π, Δ )Does NOT support other numeric values! At a glance, it looks like octal/binary/Scientific_Notation is support, but it just pads the number to length and starts at '1'
I Hope this helps! -Kenny Lemens, P.E.
NOTE: I use '「' and '」' as quotations, those characters are not required to get the field/code to process. ==================================================================== Below is some raw input/output for you to understand the limitations of this PAGENUM/COUNT Field: ====================================================================
=== DOES NOT REQUIRE A PARAMETER === ex: Total=1page 「page \[PAGENUM[]]\ of \[COUNT[]]\」 --> 「page 1 of 10」
=== SUPPORTS NUMERIC PARAMETERS === ex: Total=1page 「page \[PAGENUM[0]]\ of \[COUNT[0]]\」 --> 「page 1 of 1」
「page \[PAGENUM[2]]\ of \[COUNT[0]]\」 --> 「page 3 of 1」
「page \[PAGENUM[2]]\ of \[COUNT[6]]\」 --> 「page 3 of 7」
=== DOES NOT SUPPORT NEGATIVE NUMBERS === ex: Total=1page 「page \[PAGENUM[-1]]\ of \[COUNT[0]]\」 --> 「page \[PAGENUM[-1]]\ of 1」
=== SUPPORTS PREFIX PADDIN === ex: Total=10pages 「page \[PAGENUM[00]]\ of \[COUNT[000]]\」 --> 「page 01 of 010」 --> ... --> 「page 09 of 010」 --> 「page 10 of 010」
=== SUPPORTS PREFIX PADDING === ex: Total=1page 「page \[PAGENUM[0000006]]\ of \[COUNT[xxxxxx6]]\」 --> 「page 0000007 of 0000001」 --> NOTE: Letters can be used to 'pad', but will default to Page1 = '1' Use '0' to pad a number with a custom numeric start.
=== OTHER NUMERIC VALUES (will process, but just pads the number '1' to the length of string) === ex: Total=1page 「page \[PAGENUM[0b11111111]]\ of \[COUNT[0o377]]\」 (Test binary form of 255; octal form of 255) --> 「page 0000000001 of 00001」 「page \[PAGENUM[1e10]]\ of \[COUNT[i]]\」 (Test Scientific notation) --> 「page 0001 of 1」 「page \[PAGENUM[e]]\ of \[COUNT[π]]\」 (Test Special Numbers) --> 「page 1 of \[COUNT[π]]\」
=== LIMITATIONS ====== 「\[COUNT[2147483646]]\」 --> 「2147483647」 「\[COUNT[2147483647]]\」 --> 「-2147483648」 「\[COUNT[2147483648]]\」 --> 「0000000001」
|
|
1 user thanked Kenny Lemens for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 150 Location: Wisconsin Was thanked: 71 time(s) in 45 post(s)
|
Greetings, As it turns out, you don't need to do anything crazy to define an offset for the [COUNT] and [PAGENUM] Fields! Originally Posted by: ElSid That is the problem. I cannot adjust the [PAGENUM] field in the footer After trial and error, I finally discovered you can define your first page number within the INSERT FIELD dialog box (by just using your keyboard, you need not use the dropdown). All you need to do is type in a number into the "Format:" and the "Example:" will show you a preview of the first page: The interesting thing is that, unlike my previous post, negative numbers ARE supported for [COUNT] and [PAGENUM] Fields! As long as you utilize the [Insert Field] dialog box, negative numbers can be used. -Kenny Lemens, P.E. ᵂᴵ |
|
3 users thanked Kenny Lemens for this useful post.
|
on 03/12/2022(UTC), on 03/12/2022(UTC), on 05/12/2022(UTC)
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.