From b62289ab07f297afbc6e1cfbccf4c9618981a595 Mon Sep 17 00:00:00 2001 From: LogCreative Date: Mon, 25 Sep 2023 18:50:23 +0800 Subject: [PATCH] fix: star has level 10 and empty has level 11 --- source/presenter.dtx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/source/presenter.dtx b/source/presenter.dtx index 60490e1..8a473dc 100644 --- a/source/presenter.dtx +++ b/source/presenter.dtx @@ -247,17 +247,10 @@ % TODO: do more research on this with other packages. % \end{macro} % -% \begin{variable}[int]{\c_@@_lowest_sec_lv_int} -% The lowest section level constant. -% \begin{macrocode} -\int_const:Nn \c_@@_lowest_sec_lv_int { 100 } -% \end{macrocode} -% \end{variable} -% % \begin{macro}[int]{\@ssect} % For the stared version of the sectioning command, \tn{@ssect} will be called % as the child command. No typesetting in the body and insert the information to -% the mark. The starred sectioning will have the lowest level. +% the mark. The starred sectioning will have the same level 10. % % NOTICE: since there is no name or level of the sectioning in the paramenters % of \tn{@ssect}, the current implementation will make displaying the star @@ -273,14 +266,13 @@ \RenewDocumentCommand { \@ssect } { m m m m m } { \starmark { #5 } } -\pretsec_put_name_lv:nV { star } \c_@@_lowest_sec_lv_int +\pretsec_put_name_lv:nn { star } { 10 } % \end{macrocode} % \end{macro} % -% Define \verb"empty" sectioning name with the lowest sectioning level for -% initialization. +% Define \verb"empty" sectioning name with the level 11 for initialization. % \begin{macrocode} -\pretsec_put_name_lv:nV { empty } \c_@@_lowest_sec_lv_int +\pretsec_put_name_lv:nn { empty } { 11 } \pretsec_register_name_title:nn { empty } { } % \end{macrocode} %