Skip to content

Commit

Permalink
fix: dual lv updating
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Jun 29, 2023
1 parent e03ff06 commit c081c85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/pretfg.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,16 @@
\int_compare:nNnTF
{ \l_@@_fg_headline_cur_sec_lv_int } >
{ \l_@@_fg_headline_prev_sec_lv_int }
{
{
\InsertMark { pretprevmark } { \LastMark { pretcurmark } }
\InsertMark { pretcurmark } { #2 }
}
{
\int_set_eq:NN \l_@@_fg_headline_prev_sec_lv_int
\l_@@_fg_headline_cur_sec_lv_int
\InsertMark { pretprevmark } { #2 }
\InsertMark { pretcurmark } { #2 }
}
\int_set_eq:NN \l_@@_fg_headline_prev_sec_lv_int
\l_@@_fg_headline_cur_sec_lv_int
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions testfiles/dual.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ Testing the text in the paragraph.

Testing the text in the subparagraph.

\subsection{Header}

A bigger section level.

\subparagraph*{Star page}

Testing the stared sectioning.
Expand Down
1 change: 1 addition & 0 deletions testfiles/dual.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Don't change this file in any respect.
] [8
] [9
] [10
] [11
] (dual.aux)

0 comments on commit c081c85

Please sign in to comment.