Skip to content

Commit 3e2b28b

Browse files
committed
TeX::Interpreter::LaTeX::Class::TeXMLbook: Corrected location of \@clear@tocstack.
1 parent d0ed7bb commit 3e2b28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/perl/TeX/Interpreter/LaTeX/Class/TeXMLbook.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ __DATA__
254254
255255
\def\@end@BITS@section{%
256256
\@clear@sectionstack
257-
\addtocontents{toc}{\@clear@tocstack}%
258257
\if@frontmatter
259258
\endXMLelement{front-matter}%
260259
\else
@@ -305,6 +304,7 @@ __DATA__
305304
306305
\def\backmatter{%
307306
\if@backmatter\else
307+
\addtocontents{toc}{\@clear@tocstack}%
308308
\@end@BITS@section
309309
\global\@frontmatterfalse
310310
\global\@mainmatterfalse

0 commit comments

Comments
 (0)