%% %% This is file `latex-lab-kernel-changes.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% latex-lab-toc-kernel-changes.dtx (with options: `kernelchange') %% latex-lab-sec.dtx (with options: `kernelchange') %% %% This is a generated file. %% %% Copyright 2021-2023 LaTeX Project %% %% This file was generated from file(s) of the `LaTeX-lab Bundle'. %% ------------------------------------------------------------------------------------ %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% %% This file may only be distributed together with a copy of the LaTeX %% `LaTeX-lab Bundle'. You may however distribute the `LaTeX-lab Bundle' %% without such generated files. %% %% The newest sources can be found below %% %% https://github.com/latex3/latex2e/required/latex-lab %% %% where one can also log issues in case there are any. %% %% %% File: latex-lab-toc-kernel-changes.dtx (C) Copyright 2022-2024 LaTeX Project \def\ltlabkerneldate{2024-02-12} \def\ltlabkernelversion{0.85c} \ProvidesPackage{latex-lab-kernel-changes} [\ltlabkerneldate\space v\ltlabkernelversion\space General kernel and class changes] \def\hyper@nopatch@counter{} \def\@definecounter#1{\expandafter\newcount\csname c@#1\endcsname \setcounter{#1}\z@ \global\expandafter\let\csname cl@#1\endcsname\@empty \@addtoreset{#1}{@ckpt}% \global\expandafter\let\csname p@#1\endcsname\@empty \expandafter\gdef\csname theH#1\endcsname{\the\value{#1}}%new \expandafter \gdef\csname the#1\expandafter\endcsname\expandafter {\expandafter\@arabic\csname c@#1\endcsname}} \def\@addtoreset#1#2{\expandafter\@cons\csname cl@#2\endcsname {{#1}}% \expandafter\gdef\csname theH#1\endcsname{\csname theH#2\endcsname.\the\value{#1}}% } \gdef\theHenumi{\the\value{enumi}} \gdef\theHenumii{\the\value{enumii}} \gdef\theHenumiii{\the\value{enumiii}} \gdef\theHenumiv{\the\value{enumiv}} \gdef\theHequation{\the\value{equation}} \gdef\theHfootnote{\the\value{footnote}} \gdef\theHmpfootnote{\the\value{mpfootnote}} \def\@currentHref{} \def\refstepcounter#1{\stepcounter{#1}% \edef\@currentcounter{#1}% \xdef\@currentHref {#1.\csname theH#1\endcsname}% \protected@edef\@currentlabel {\csname p@#1\expandafter\endcsname\csname the#1\endcsname}% } \let\@kernel@refstepcounter\refstepcounter \def\toclevel@document{-10} \def\toclevel@part{-1} \def\toclevel@chapter{0} \def\toclevel@section{1} \def\toclevel@subsection{2} \def\toclevel@subsubsection{3} \def\toclevel@paragraph{4} \def\toclevel@subparagraph{5} \def\toclevel@figure{1} \def\toclevel@table{1} \ExplSyntaxOn \AddToHookWithArguments{cmd/MakeLinkTarget/after} { \tag_if_active:T { \tl_if_blank:VF \@currentHref { \prop_gput:Nee \g__tag_struct_dest_num_prop {\@currentHref}{\tag_get:n{struct_num}} } } } \ExplSyntaxOff %% File: latex-lab-sec.dtx (C) Copyright 2022-2024 LaTeX Project \def\ltlabsecdate{2024-02-12} \def\ltlabsecversion{0.84c} \ifdefined\directlua \ifnum\outputmode > 0 \pdfvariable gentounicode =1 \protected\def\pdfglyphtounicode {\pdfextension glyphtounicode } \protected\edef\pdfgentounicode {\pdfvariable gentounicode} \input{glyphtounicode} \fi \fi \ifdefined\pdfglyphtounicode \input{glyphtounicode-cmex} \fi \ExplSyntaxOn \int_new:N\g__kernel_target_int \RenewDocumentCommand\MakeLinkTarget{sO{}m} {% \ifvmode \special{}% \else \@savsf\spacefactor \smash{}% \spacefactor\@savsf \fi \IfBooleanTF {#1} { \tl_gset:Ne \@currentHref {#3} } { \int_gincr:N\g__kernel_target_int \tl_gset:Ne \@currentHref {target*.\int_use:N\g__kernel_target_int} } } \ExplSyntaxOff \endinput %% %% End of file `latex-lab-kernel-changes.sty'.