Skip to content

Commit

Permalink
Better with an \edef at this location in the #22 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Jan 14, 2024
1 parent 6dfe94e commit 3f6fdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etoc.sty
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
%% to 1 if it does not exist. But then a problem arise if
%% the actual level is 0, with a tocdepth at 0... \etocissue{22}!
\@ifundefined{toclevel@#1}%
{\etoc@namedef{toclevel@#1}{\the\numexpr\Etoc@level}}%
{\edef{toclevel@#1}{\the\numexpr\Etoc@level}}%
{}%
%%
%% TODO: this ties the hierarchy of levels to the one expected
Expand Down

0 comments on commit 3f6fdac

Please sign in to comment.