Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline ElSid  
#1 Posted : 5 years ago
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
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.aspx

BTW, I've never understood how that "code snippet" (link) is started

Edited by user 5 years ago  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 5 years ago
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Originally Posted by: ElSid Go to Quoted Post
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.
Offline ElSid  
#3 Posted : 5 years ago
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
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.
Offline Jean Giraud  
#4 Posted : 5 years ago
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Originally Posted by: ElSid Go to Quoted Post
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 ?
Offline Jean Giraud  
#5 Posted : 5 years ago
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
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
Offline ElSid  
#6 Posted : 5 years ago
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
That is the problem. I cannot adjust the [PAGENUM] field in the footer
Page in footer.PNG
Offline Jean Giraud  
#7 Posted : 5 years ago
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Originally Posted by: ElSid Go to Quoted Post
That is the problem.I cannot adjust the [PAGENUM] field in the footer

Attach a typical document or take some from the Forum.
Offline Andrey Ivashov  
#8 Posted : 5 years ago
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,626
Man
Russian Federation

Was thanked: 1993 time(s) in 670 post(s)
Currently it is not possible. Will implement it soon.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 15/01/2020(UTC)
Offline Jean Giraud  
#9 Posted : 5 years ago
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Originally Posted by: ElSid Go to Quoted Post
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 ...
Offline sinneD  
#10 Posted : 5 years ago
sinneD


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 Go to Quoted Post
That is the problem. I cannot adjust the [PAGENUM] field in the footer
Page in footer.PNG


Join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Kenny Lemens  
#11 Posted : 3 years ago
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 150
Man
United States
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 supported
  • Padding is supported:
    1. Padding with zeros (i.e. 00002) will report at least 5 Digits starting at '3'
    2. 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)
    1. 「\[COUNT[2147483646]]\」 --> 「2147483647」
    2. 「\[COUNT[2147483647]]\」 --> 「-2147483648」
    3. 「\[COUNT[2147483648]]\」 --> 「0000000001」
    4. 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」


  • "No matter where you go, there you are." -Buckaroo Banzai

    Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
    thanks 1 user thanked Kenny Lemens for this useful post.
    on 26/03/2022(UTC)
    Offline Kenny Lemens  
    #12 Posted : 2 years ago
    Kenny Lemens


    Rank: Advanced Member

    Groups: Registered
    Joined: 11/01/2018(UTC)
    Posts: 150
    Man
    United States
    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 Go to Quoted Post
    That is the problem. I cannot adjust the [PAGENUM] field in the footer
    Page in footer.PNG



    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:

       SMath_Insert_Fields_Format.jpg


    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. ᵂᴵ


    "No matter where you go, there you are." -Buckaroo Banzai

    Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
    thanks 3 users thanked Kenny Lemens for this useful post.
    on 03/12/2022(UTC),  on 03/12/2022(UTC),  on 05/12/2022(UTC)
    Users browsing this topic
    Guest
    Similar Topics
    How to plot a polar diagram of radiated fields of infinitesimal linear wire (Questions)
    by andrbig77 3 years ago
    Vector Fields Joukowsky (Samples)
    by Jean Giraud 3 years ago
    [SS-125] Text fields bug (Bugs & Problems)
    by franky123 6 years ago
    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.