diff options
author | Karl Berry <karl@freefriends.org> | 2023-09-14 20:25:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-09-14 20:25:56 +0000 |
commit | 1d3ae017495efdb1b2d9fbdc639b3d9a1088c3fb (patch) | |
tree | 7f5a65cf5215a622f7759f51a1c6114616fa4b0f /Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty | |
parent | bdf29fccef93127229dd75857543360f7932afa3 (diff) |
latex-lab-dev (14sep23)
git-svn-id: svn://tug.org/texlive/trunk@68279 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty b/Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty index 37d260300ad..7ff5295cce7 100644 --- a/Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty +++ b/Master/texmf-dist/tex/latex-dev/latex-lab/latex-lab-testphase-sec.sty @@ -33,7 +33,9 @@ %% %% %% File: latex-lab-sec.dtx (C) Copyright 2022-2023 LaTeX Project -\ProvidesExplPackage {latex-lab-testphase-sec} {2023-05-20} {0.81} +\def\ltlabsecdate{2023-07-20} +\def\ltlabsecversion{0.84a} +\ProvidesExplPackage {latex-lab-testphase-sec} {\ltlabsecdate} {\ltlabsecversion} {Code related to the tagging of sectioning commands} \RequirePackage{latex-lab-kernel-changes} \seq_new:N \g__tag_sec_stack_seq @@ -161,31 +163,34 @@ { \@ifundefined{chapter} { - \RenewDocumentCommand\part{ s O{#3} m } + \@ifundefined{part}{} { - \if@noskipsec \leavevmode \fi - \par - \addvspace{4ex}% - \@afterindentfalse + \RenewDocumentCommand\part{ s O{#3} m } + { + \if@noskipsec \leavevmode \fi + \par + \addvspace{4ex}% + \@afterindentfalse % tagging start commands - \tag_tool:n {sec-start-part=#2} + \tag_tool:n {sec-start-part=#2} % end tagging start commands - \bool_lazy_any:nT - { - { #1 } + \bool_lazy_any:nT { - \int_compare_p:nNn {\c@secnumdepth}<{-1} + { #1 } + { + \int_compare_p:nNn {\c@secnumdepth}<{-1} + } } - } - { - \MakeLinkTarget[part]{} - } - \IfBooleanTF - {#1} - { \@spart {#3} } - { \@part [#2]{#3} } - \tag_tool:n {sec-stop-part} - } + { + \MakeLinkTarget[part]{} + } + \IfBooleanTF + {#1} + { \@spart {#3} } + { \@part [#2]{#3} } + \tag_tool:n {sec-stop-part} + } + } } { \RenewDocumentCommand\chapter{ s O{#3} m } |