Automatic numbering sections book

Automatic numbering sections book - Messages

#1 Posted: 9/3/2018 6:22:50 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

A template about how to create automatic numbering sections, figures, tables and equation labels.
Best regards.
Alvaro.

Automatic numbering sections book.sm (84 KiB) downloaded 337 time(s).
2 users liked this post
frapuano 9/3/2018 8:14:00 AM, Вячеслав Мезенцев 9/29/2018 10:49:00 PM
#2 Posted: 9/28/2018 9:34:35 PM
Basile

Basile

8 likes in 172 posts.

Group: User

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?
#3 Posted: 9/30/2018 6:29:45 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Wrote

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)

Clipboard01.jpg

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 (85 KiB) downloaded 102 time(s).

Best regards.

Alvaro.
1 users liked this post
#4 Posted: 9/30/2018 2:20:51 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

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

Show Spoiler

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 9/30/2018 3:00:44 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Wrote

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

Show Spoiler



Yes, it's possible, let's me see if can do that.

Here, my old mcad 11 project for numbering pages.

numbers.zip (151 KiB) downloaded 96 time(s).
numbers.pdf (343 KiB) downloaded 148 time(s).

Best regards.
Alvaro.
#6 Posted: 9/30/2018 11:04:38 PM
Basile

Basile

8 likes in 172 posts.

Group: User

I never looked outside the document...
Any table of contents, figures, tables, equations, possible?
Thank you.
Basile
#7 Posted: 10/1/2018 1:27:12 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

Hi. The One-Function version, with TOC at the end.
Best regards
Alvaro.

Automatic numbering sections book v2.sm (38 KiB) downloaded 131 time(s).
1 users liked this post
Davide Carpi 10/1/2018 3:25:00 AM
#8 Posted: 10/1/2018 5:04:38 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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?

2018-10-01 09_58_08-SMath Studio 0.99.6839 - [Automatic%20numbering%20sections%20book%20v3.sm].png
Automatic%20numbering%20sections%20book%20v3.sm (40 KiB) downloaded 96 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#9 Posted: 10/1/2018 3:46:23 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

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
#10 Posted: 10/1/2018 8:56:27 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1675 posts.

Group: User

The formated label version.
Best regards
Alvaro

Automatic numbering sections book - Formated label.sm (36 KiB) downloaded 275 time(s).
4 users liked this post
Вячеслав Мезенцев 10/1/2018 9:10:00 PM, frapuano 10/2/2018 6:05:00 AM, sergio 1/21/2020 8:38:00 AM, Igor K 10/1/2024 5:44:00 PM
  • New Posts New Posts
  • No New Posts No New Posts