Fields

Fields - How to modify - Сообщения

#1 Опубликовано: 18.12.2019 13:52:54
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: 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 Опубликовано: 18.12.2019 18:42:49
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 19.12.2019 10:28:22
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: 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 Опубликовано: 19.12.2019 12:36:08
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 19.12.2019 20:42:44
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 10.01.2020 19:04:51
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

That is the problem. I cannot adjust the [PAGENUM] field in the footer
Page in footer.PNG
#7 Опубликовано: 11.01.2020 14:00:14
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 12.01.2020 11:14:18
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

Currently it is not possible. Will implement it soon.
1 пользователям понравился этот пост
ElSid 15.01.2020 11:32:00
#9 Опубликовано: 14.01.2020 09:45:27
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 29.01.2020 13:31:23
Dionysios J. Pantazis

Dionysios J. Pantazis

16 сообщений из 179 понравились пользователям.

Группа: 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 Опубликовано: 25.03.2022 16:22:48
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 пользователям понравился этот пост
    sergio 26.03.2022 16:00:00
    #12 Опубликовано: 02.12.2022 19:19:06
    ⚜ Kenny Lemens, P.E. ᵂᴵ

    ⚜ Kenny Lemens, P.E. ᵂᴵ

    74 сообщений из 164 понравились пользователям.

    Группа: 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 пользователям понравился этот пост
    Mark R Harris 02.12.2022 22:38:00, sergio 03.12.2022 05:45:00, NDTM Amarasekera 05.12.2022 00:41:00
    • Новые сообщения Новые сообщения
    • Нет новых сообщений Нет новых сообщений