summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-10-12 20:10:51 +0000
committerKarl Berry <karl@freefriends.org>2022-10-12 20:10:51 +0000
commit1d6906471eb88c119dc3a48f9a44e9cd345e2f41 (patch)
tree5bf0d5dd7a9496529a6f32af7ad24fc0f18b2d72 /Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx
parentd1a688fe4933bc485a8df8cdf30497c917e33146 (diff)
koma-script (12oct22)
git-svn-id: svn://tug.org/texlive/trunk@64685 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx94
1 files changed, 72 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx b/Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx
index 5ed80eebaae..0a9a21dd265 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkernel-sections.dtx
@@ -18,7 +18,7 @@
%
% This work consists of all files listed in MANIFEST.md.
% ======================================================================
-%%% From File: $Id: scrkernel-sections.dtx 3874 2022-06-05 10:38:02Z kohm $
+%%% From File: $Id: scrkernel-sections.dtx 3954 2022-10-04 09:20:19Z kohm $
% The runs of run-time file generation:
%<preidentify>%%% (run: preidentify)
% - everything that is needed before selfidentification of resulting files
@@ -40,9 +40,9 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
- \filedate$Date: 2022-06-05 12:38:02 +0200 (So, 05. Jun 2022) $
+ \filedate$Date: 2022-10-04 11:20:19 +0200 (Di, 04. Okt 2022) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
- \filerevision$Revision: 3874 $
+ \filerevision$Revision: 3954 $
\edef\reserved@a{%
\noexpand\endgroup
\noexpand\ProvidesFile{scrkernel-sections.dtx}%
@@ -1587,6 +1587,7 @@
% \DeclareSectionCommandStyleFontOption}
% \changes{v3.17}{2015/03/23}{added}
% \changes{v3.20}{2016/04/25}{argument expansion}
+% \changes{v3.38}{2022/09/16}{copy option added}
% All these commands have the four arguments:
% \begin{quote}
% \marg{style}\marg{option}\marg{prefix}\marg{postfix}
@@ -1628,6 +1629,17 @@
\fi
\fi
}%
+ \DeclareSectionCommandStyleOption{#1}{#2:}{%
+ \scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{%
+ \ifscr@dsc@expandtopt
+ \setlength{\@tempskipa}{\@nameuse{#3##1#4}}%
+ \expandafter\edef\csname #3\scr@dsc@current#4\endcsname{\the\@tempskipa}%
+ \else
+ \@namedef{#3\scr@dsc@current#4}{\@nameuse{#3##1#4}}%
+ \fi
+ \FamilyKeyStateProcessed
+ }%
+ }%
}
\newcommand*{\DeclareSectionCommandStyleNumberOption}[4]{%
\DeclareSectionCommandStyleOption{#1}{#2}{%
@@ -1638,6 +1650,17 @@
\expandafter\let\csname #3\scr@dsc@current#4\endcsname\reserved@a
\fi
}%
+ \DeclareSectionCommandStyleOption{#1}{#2:}{%
+ \scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{%
+ \ifscr@dsc@expandtopt
+ \@tempcnta=\@nameuse{#3##1#4}%
+ \expandafter\edef\csname #3\scr@dsc@current#4\endcsname{\the\@tempcnta}%
+ \else
+ \@namedef{#3\scr@dsc@current#4}{\@nameuse{#3##1#4}}%
+ \fi
+ \FamilyKeyStateProcessed
+ }%
+ }%
}
\newcommand*{\DeclareSectionCommandStyleFontOption}[4]{%
\DeclareSectionCommandStyleOption{#1}{#2}{%
@@ -1648,12 +1671,23 @@
}{#3\scr@dsc@current#4}{##1}%
\FamilyKeyStateProcessed
}%
+ \DeclareSectionCommandStyleOption{#1}{#2:}{%
+ \IfExistskomafont{#3##1#4}{%
+ \IfExistskomafont{#3\scr@dsc@current#4}{%
+ \setkomafont
+ }{%
+ \newkomafont
+ }{#3\scr@dsc@current#4}{\usekomafont{#3##1#4}}%
+ \FamilyKeyStateProcessed
+ }{\FamilyKeyStateUnknownValue}%
+ }%
}
% \end{macrocode}
% \end{command}^^A \DeclareSectionCommandStyleLengthOption …
% \begin{command}{\DeclareSectionCommandStyleFuzzyOption}
% \changes{v3.26}{2018/09/18}{added}
% \changes{v3.28}{2019/11/18}{\cs{ifstr} renamed to \cs{Ifstr}}
+% \changes{v3.38}{2022/09/16}{copy option added}
% We also have a kind of fuzzy option. A fuzzy option defined by
% \begin{quote}
% \cs{DeclareSectionCommandStyleFuzzyOption}\meta{style}\meta{option}%
@@ -1686,6 +1720,19 @@
}{}%
\fi
}%
+ \DeclareSectionCommandStyleOption{#1}{#2:}{%
+ \scr@ifundefinedorrelax{#3##1#4}{\FamilyKeyStateUnknownValue}{%
+ \ifscr@dsc@expandtopt
+ \expandafter\let\csname #3\scr@dsc@current#4\expandafter\endcsname
+ \csname #3##1#4\endcsname
+ \else
+ \expandafter\def\csname #3\scr@dsc@current#4\endcsname{%
+ \@nameuse{#3##1#4}%
+ }%
+ \fi
+ \FamilyKeyStateProcessed
+ }%
+ }%
}
% \end{macrocode}
% \end{command}^^A \DeclareSectionCommandStyleFuzzyOptions
@@ -3297,30 +3344,33 @@
}%
% \end{macrocode}
% \changes{v3.26b}{2019/01/17}{workaround for \cs{@beginmainauxhook} added}
+% \changes{v3.38}{2022/10/04}{\pkg{auxhook} not needed with newer \pkg{hyperref}}
% Sometimes \pkg{auxhook} is not able to recognize that it cannot use a
% patch of \cs{document} to execute \cs{@beginmainauxhook} if it is loaded via
% \cs{AtBeginDocument}. In this case we do it here.
% \begin{macrocode}
- \ifx\@beginmainauxhook\relax
- \else
- \if@filesw
- \ClassWarning{\KOMAClassName}{%
- seems someone has broken package `auxhook'.\MessageBreak
- Usually this happens, if `auxhook' is loaded or used\MessageBreak
- implicitly or explicitly by patching
- \string\document%
- \scr@ifundefinedorrelax{AtEndPreamble}{}{%
- \MessageBreak
- or via etoolbox command \string\AtEndPreamble%
- }.\MessageBreak
- Trying an emergency workaround.\MessageBreak
- You can avoid this warning adding:\MessageBreak
- \space\space\string\usepackage{auxhook}\MessageBreak
- before \string\begin{document}%
- }%
- \@beginmainauxhook
+ \@ifpackagelater{hyperref}{2022/09/22}{}{%
+ \ifx\@beginmainauxhook\relax
+ \else
+ \if@filesw
+ \ClassWarning{\KOMAClassName}{%
+ seems someone has broken package `auxhook'.\MessageBreak
+ Usually this happens, if `auxhook' is loaded or used\MessageBreak
+ implicitly or explicitly by patching
+ \string\document%
+ \scr@ifundefinedorrelax{AtEndPreamble}{}{%
+ \MessageBreak
+ or via etoolbox command \string\AtEndPreamble%
+ }.\MessageBreak
+ Trying an emergency workaround.\MessageBreak
+ You can avoid this warning adding:\MessageBreak
+ \space\space\string\usepackage{auxhook}\MessageBreak
+ before \string\begin{document}%
+ }%
+ \@beginmainauxhook
+ \fi
\fi
- \fi
+ }%
\fi
}%
}%