Add command for generating unique secton labels.

This commit is contained in:
Silcantar
2025-09-15 23:55:17 -05:00
parent 5e578de497
commit f4ba849bb3
4 changed files with 96 additions and 9 deletions

View File

@@ -84,6 +84,7 @@
% If the argument is not empty, only chapters that are listed are included.
\NewDocumentCommand{\IncludeOnlyChapters}{m}{
\str_set:Nn \l_IncludeOnly_chapters_str {#1}
\str_remove_all:Nn \l_IncludeOnly_chapters_str {~}
\str_if_empty:NF \l_IncludeOnly_chapters_str {
\expanded{\noexpand\includeonly{\l_IncludeOnly_chapters_str}}
}