diff options
Diffstat (limited to 'macros/latex/contrib/koma-script/source/scrkernel-fonts.dtx')
-rw-r--r-- | macros/latex/contrib/koma-script/source/scrkernel-fonts.dtx | 115 |
1 files changed, 59 insertions, 56 deletions
diff --git a/macros/latex/contrib/koma-script/source/scrkernel-fonts.dtx b/macros/latex/contrib/koma-script/source/scrkernel-fonts.dtx index 198896bec2..2e703b4a8a 100644 --- a/macros/latex/contrib/koma-script/source/scrkernel-fonts.dtx +++ b/macros/latex/contrib/koma-script/source/scrkernel-fonts.dtx @@ -1,8 +1,7 @@ -% \CheckSum{3406} % \iffalse meta-comment % ====================================================================== % scrkernel-fonts.dtx -% Copyright (c) Markus Kohm, 2002-2019 +% Copyright (c) Markus Kohm, 2002-2021 % % This file is part of the LaTeX2e KOMA-Script bundle. % @@ -20,7 +19,7 @@ % This work consists of all files listed in manifest.txt. % ---------------------------------------------------------------------- % scrkernel-fonts.dtx -% Copyright (c) Markus Kohm, 2002-2019 +% Copyright (c) Markus Kohm, 2002-2021 % % Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz, % Version 1.3c, verteilt und/oder veraendert werden. @@ -55,7 +54,7 @@ % Right brace \} Tilde \~} % % \iffalse -%%% From File: $Id: scrkernel-fonts.dtx 3390 2019-11-18 17:09:35Z kohm $ +%%% From File: $Id: scrkernel-fonts.dtx 3597 2021-05-17 12:54:47Z kohm $ %<identify>%%% (run: identify) %<option>%%% (run: option) %<body>%%% (run: body) @@ -66,7 +65,7 @@ \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi \begingroup \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} - \filedate$Date: 2019-11-18 18:09:35 +0100 (Mon, 18 Nov 2019) $ + \filedate$Date: 2021-05-17 14:54:47 +0200 (Mon, 17 May 2021) $ \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} \filerevision$Revision: 1827 $ \edef\reserved@a{% @@ -1946,46 +1945,49 @@ % \end{macrocode} % \end{macro} % +% \selectlanguage{english} % \begin{macro}{\usesizeofkomafont} -% \changes{v3.12}{2013/03/30}{neu}%^^A -% \changes{v3.17}{2015/04/03}{robustere Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{robustere Neuimplementierung}%^^A +% \changes{v3.12}{2013/03/30}{new} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} +% \changes{v3.34}{2021/05/17}{new implementation due to \LaTeX{} kernel +% change} % \begin{macro}{\usefamilyofkomafont} -% \changes{v3.12}{2013/03/30}{neu}%^^A -% \changes{v3.17}{2015/04/03}{basiert auf robusterer Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{basiert auf robusterer Neuimplementierung}%^^A +% \changes{v3.12}{2013/03/30}{new} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} % \begin{macro}{\useseriesofkomafont} -% \changes{v3.12}{2013/03/30}{neu}%^^A -% \changes{v3.17}{2015/04/03}{basiert auf robusterer Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{basiert auf robusterer Neuimplementierung}%^^A +% \changes{v3.12}{2013/03/30}{new} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} % \begin{macro}{\useshapeofkomafont} -% \changes{v3.12}{2013/03/30}{neu}%^^A -% \changes{v3.16a}{2015/02/20}{Makroname korrigiert}%^^A -% \changes{v3.17}{2015/04/03}{basiert auf robusterer Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{basiert auf robusterer Neuimplementierung}%^^A +% \changes{v3.12}{2013/03/30}{new} +% \changes{v3.16a}{2015/02/20}{fix of macro name} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} % \begin{macro}{\useencodingofkomafont} -% \changes{v3.12}{2013/03/30}{neu}%^^A -% \changes{v3.17}{2015/04/03}{basiert auf robusterer Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{basiert auf robusterer Neuimplementierung}%^^A +% \changes{v3.12}{2013/03/30}{new} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} % \begin{macro}{\usefontofkomafont} -% \changes{v3.12}{2013/03/30}{neu}%^^A -% \changes{v3.17}{2015/04/03}{robustere Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{robustere Neuimplementierung}%^^A -% Manchmal wollen die Leute tatsächlich gar nicht den kompletten Font eines -% Elements, sondern nur einen Teilaspekt davon. Aber Version~3.12 wird das mit -% Hilfe neuer Anweisungen unterstützt. +% \changes{v3.12}{2013/03/30}{new} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} +% \changes{v3.34}{2021/05/17}{new implementation due to \LaTeX{} kernel +% change} +% Sometimes not the whole font but only single elements of a font is +% wanted. % \begin{macrocode} \newcommand*{\usesizeofkomafont}[1]{% \begingroup \scr@prepareforkomafont - \def\selectfont{% - \global\let\g@scr@f@size\f@size - \global\let\g@scr@f@baselineskip\f@baselineskip - \global\let\g@scr@f@linespread\f@linespread - }% - \selectfont \sbox\@tempboxa{% - \usekomafont{#1}{\relax}% + \usekomafont{#1}{% + \selectfont + \global\let\g@scr@f@size\f@size + \global\let\g@scr@f@baselineskip\f@baselineskip + \global\let\g@scr@f@linespread\f@linespread + }% }% \endgroup \linespread{\g@scr@f@linespread}% @@ -1999,47 +2001,48 @@ \newcommand*{\usefontofkomafont}[1]{% \begingroup \scr@prepareforkomafont - \def\selectfont{% - \global\let\g@scr@f@encoding\f@encoding - \global\let\g@scr@f@family\f@family - \global\let\g@scr@f@series\f@series - \global\let\g@scr@f@shape\f@shape - \global\let\g@scr@f@size\f@size - \global\let\g@scr@f@baselineskip\f@baselineskip - \global\let\g@scr@f@linespread\f@linespread - }% - \selectfont \sbox\@tempboxa{% - \usekomafont{#1}{\relax}% + \usekomafont{#1}{% + \selectfont + \global\let\g@scr@f@encoding\f@encoding + \global\let\g@scr@f@family\f@family + \global\let\g@scr@f@series\f@series + \global\let\g@scr@f@shape\f@shape + \global\let\g@scr@f@size\f@size + \global\let\g@scr@f@baselineskip\f@baselineskip + \global\let\g@scr@f@linespread\f@linespread + }% }% \endgroup \linespread{\g@scr@f@linespread}% \fontsize{\g@scr@f@size}{\g@scr@f@baselineskip}% \usefont{\g@scr@f@encoding}{\g@scr@f@family}{\g@scr@f@series}{\g@scr@f@shape}% -} +}% % \end{macrocode} % \begin{macro}{\use@ofkomafont} -% \changes{v3.12}{2013/03/30}{neu (intern)}%^^A -% \changes{v3.17}{2015/04/03}{robustere Neuimplementierung}%^^A -% \changes{v3.24}{2017/05/06}{robustere Neuimplementierung}%^^A -% Kleines Hilfsmakro für all diese Anweisungen bis auf die erste und die letzte. +% \changes{v3.12}{2013/03/30}{new (internal)} +% \changes{v3.17}{2015/04/03}{new more robust implementation} +% \changes{v3.24}{2017/05/06}{new more robust implementation} +% \changes{v3.34}{2021/05/17}{new implementation due to \LaTeX{} kernel +% change} +% Helper macro for all commands above despite the first and the last one. % \begin{macrocode} \newcommand*{\use@ofkomafont}[2]{% \begingroup \scr@prepareforkomafont - \def\selectfont{% - \global\expandafter\let\csname g@scr@f@#1\expandafter\endcsname - \csname f@#1\endcsname - }% - \selectfont \sbox\@tempboxa{% - \usekomafont{#2}{\relax}% + \usekomafont{#2}{% + \selectfont + \global\expandafter\let\csname g@scr@f@#1\expandafter\endcsname + \csname f@#1\endcsname + }% }% \endgroup \@nameuse{font#1}{\csname g@scr@f@#1\endcsname}% \selectfont } % \end{macrocode} +% \selectlanguage{ngerman} % \begin{macro}{\g@scr@usefont} % \changes{v3.17}{2015/04/03}{neu (intern)}%^^A % \changes{v3.24}{2017/05/06}{entfernt}%^^A |