Automatic numbering sections book

Automatic numbering sections book - Messaggi

#1 Pubblicato: 03/09/2018 06:22:50
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

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

Automatic numbering sections book.sm (84,05 KiB) scaricato 1681 volta(e).
2 utenti hanno apprezzato questo post
frapuano 03/09/2018 08:14:00, Вячеслав Мезенцев 29/09/2018 22:49:00
#2 Pubblicato: 28/09/2018 21:34:35
Basile

Basile

8 apprezzamenti in 172 post.

Gruppo: 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 Pubblicato: 30/09/2018 06:29:45
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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,25 KiB) scaricato 1329 volta(e).

Best regards.

Alvaro.
1 utenti hanno apprezzato questo post
#4 Pubblicato: 30/09/2018 14:20:51
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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

Mostra spoiler

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Pubblicato: 30/09/2018 15:00:44
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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

Mostra 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,39 KiB) scaricato 441 volta(e).
numbers.pdf (343,84 KiB) scaricato 1124 volta(e).

Best regards.
Alvaro.
#6 Pubblicato: 30/09/2018 23:04:38
Basile

Basile

8 apprezzamenti in 172 post.

Gruppo: User

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

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

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

Automatic numbering sections book v2.sm (38,76 KiB) scaricato 1421 volta(e).
1 utenti hanno apprezzato questo post
Davide Carpi 01/10/2018 03:25:00
#8 Pubblicato: 01/10/2018 05:04:38
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,27 KiB) scaricato 1640 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#9 Pubblicato: 01/10/2018 15:46:23
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 01/10/2018 20:56:27
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

The formated label version.
Best regards
Alvaro

Automatic numbering sections book - Formated label.sm (36,59 KiB) scaricato 1578 volta(e).
5 utenti hanno apprezzato questo post
Вячеслав Мезенцев 01/10/2018 21:10:00, frapuano 02/10/2018 06:05:00, sergio 21/01/2020 08:38:00, Igor K 01/10/2024 17:44:00, Thiago Pereira 10/06/2025 02:34:07
  • Nuovi post
  • Nessun nuovo post