Fields

Fields - How to modify - Messages

#1 Posted: 12/18/2019 1:52:54 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

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/forum/yaf_postst17228_Page-numbering.aspx

BTW, I've never understood how that "code snippet" (link) is started
#2 Posted: 12/18/2019 6:42:49 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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.
#3 Posted: 12/19/2019 10:28:22 AM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

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.
#4 Posted: 12/19/2019 12:36:08 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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 ?
#5 Posted: 12/19/2019 8:42:44 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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
#6 Posted: 1/10/2020 7:04:51 PM
Ruben Sidranski

Ruben Sidranski

17 likes in 463 posts.

Group: User

That is the problem. I cannot adjust the [PAGENUM] field in the footer
Page in footer.PNG
#7 Posted: 1/11/2020 2:00:14 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

That is the problem.I cannot adjust the [PAGENUM] field in the footer


Attach a typical document or take some from the Forum.
#8 Posted: 1/12/2020 11:14:18 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Currently it is not possible. Will implement it soon.
1 users liked this post
ElSid 1/15/2020 11:32:00 AM
#9 Posted: 1/14/2020 9:45:27 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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 ...
#10 Posted: 1/29/2020 1:31:23 PM
Dionysios J. Pantazis

Dionysios J. Pantazis

16 likes in 179 posts.

Group: User

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.

Wrote

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
#11 Posted: 3/25/2022 4:22:48 PM
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 likes in 164 posts.

Group: User

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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
    1 users liked this post
    sergio 3/26/2022 4:00:00 PM
    #12 Posted: 12/2/2022 7:19:06 PM
    ⚜ Kenny Lemens, P.E. ᵂᴵ

    ⚜ Kenny Lemens, P.E. ᵂᴵ

    74 likes in 164 posts.

    Group: User

    Greetings,

    As it turns out, you don't need to do anything crazy to define an offset for the [COUNT] and [PAGENUM] Fields!

    Wrote

    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 BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
    3 users liked this post
    Mark R Harris 12/2/2022 10:38:00 PM, sergio 12/3/2022 5:45:00 AM, NDTM Amarasekera 12/5/2022 12:41:00 AM
    • New Posts New Posts
    • No New Posts No New Posts