SMath Studio Forum
»
SMath Studio
»
Samples
»
Automatic numbering sections book
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
A template about how to create automatic numbering sections, figures, tables and equation labels. Best regards. Alvaro. Automatic numbering sections book.sm (85kb) downloaded 261 time(s).
|
2 users thanked Razonar for this useful post.
|
on 03/09/2018(UTC), on 30/09/2018(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 13/10/2010(UTC) Posts: 172 Location: USA
Was thanked: 8 time(s) in 7 post(s)
|
Razonar, How do you start from paragraph 1? preferably 0?
Thanks, Basile PS. Can this be extended to have an automatic Table of Contents, List of Figures, List of Tables, and List of Equations?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Basile Razonar, How do you start from paragraph 1? preferably 0?
Thanks, Basile PS. Can this be extended to have an automatic Table of Contents, List of Figures, List of Tables, and List of Equations? Hi Basile. You can start from any paragraph pointing the value of the variable '§, for example from paragraph six is: '§:mat(5,1,1) For paragraph 1 use zero as starting value. Yes, I it's possible automate the TOC, but I don't know how to catch in the SMath document the page number, so, I can do that but manually adding it. Index at the end of the attached. Automatic numbering sections book.sm (86kb) downloaded 50 time(s).Best regards. Alvaro. Edited by user 30 September 2018 13:17:27(UTC)
| Reason: Not specified
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Very nice I guess you can add the code in a function to reduce the code repetition and call only that function on the region placeholder
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Davide Carpi Very nice I guess you can add the code in a function to reduce the code repetition and call only that function on the region placeholder
Yes, it's possible, let's me see if can do that. Here, my old mcad 11 project for numbering pages. numbers.zip (152kb) downloaded 44 time(s). numbers.pdf (344kb) downloaded 96 time(s).Best regards. Alvaro.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 13/10/2010(UTC) Posts: 172 Location: USA
Was thanked: 8 time(s) in 7 post(s)
|
I never looked outside the document... Any table of contents, figures, tables, equations, possible? Thank you. Basile
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
You can display the index at the begin of the document if you assign it to an absolute variable at the end (those variables starting with a tilde ~) On german keyboards, the tilde has to be copied from a text region as it is catched as a hotkey for boolean = in math regions). BTW, why don't you use formatted labels? Automatic%20numbering%20sections%20book%20v3.sm (41kb) downloaded 45 time(s). |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Hi Martin. Thanks for the update about global variables. I don't use formated labels because I want only to show how get automatic numbering into several SMath documents with native SMath tools. Without any doubt with formated labels it will looks great.
Best regards Alvaro
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
|
3 users thanked Razonar for this useful post.
|
on 02/10/2018(UTC), on 02/10/2018(UTC), on 21/01/2020(UTC)
|
|
SMath Studio Forum
»
SMath Studio
»
Samples
»
Automatic numbering sections book
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.