Skip to content

Commit

Permalink
fix: star has level 10 and empty has level 11
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Sep 25, 2023
1 parent 6e68474 commit b62289a
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions source/presenter.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
%
Expand Down

0 comments on commit b62289a

Please sign in to comment.