Unverified Commit 35fe6da7 authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Make `\sekce` update `\@currentlabel`

parent e985b80e
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@
%
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}%
\ProvidesClass{katalog}[2022/11/16]%
\ProvidesClass{katalog}[2022/12/07]%
%    \end{macrocode}
%
% \section{Závislosti}
@@ -1442,9 +1442,10 @@
        {
            \@@_text_blank_page_image:n { #5 }

            \phantomsection
            \addtocounter{section}{1}
            \setcounter{subsection}{0}
            \phantomsection
            \def\@currentlabel{\thesection}
            \addcontentsline{toc}{section}{%
              \protect\numberline{\thesection}%
              #3}