%% %% This is file `setspace.hak', %% generated with the docstrip utility, extended by scrdocstrip. %% %% The original source files were: %% %% scrkernel-version.dtx (with options: `file,setspace.hak') %% scrhack.dtx (with options: `hack,setspace,identify') %% scrhack.dtx (with options: `hack,setspace,body') %% %% Copyright (c) 2008-2022 Markus Kohm [komascript at gmx info] %% %% This file was generated from file(s) of the KOMA-Script bundle. %% --------------------------------------------------------------- %% %% It may be distributed under the conditions of the %% LaTeX Project Public License in the version distributed together %% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'. %% %% This file may only be distributed together with a copy of the %% KOMA-Script bundle. You may however distribute the %% KOMA-Script bundle without all such generated files. See also %% `lppl.txt' or `lppl-de.txt' for additional information. %% %% The list of files belonging to KOMA-Script distribution is given in %% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for %% additional information. %% %% If this file is a beta version, you may not be allowed to distribute %% it. Look at the comments below to see if this is the case. %% %% English and German manuals are part of KOMA-Script bundle. %% ---------------------------------------------------------- %% %% See `README'. %% %% The KOMA-Script bundle (but maybe not this file) was based upon the %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e %% standard classes created by The LaTeX3 Project 1994-1996. You can %% find a complete unmodified copy of LaTeX2e at %% . %% %%% From File: $Id: scrkernel-version.dtx 4070 2023-07-07 07:08:40Z kohm $ \begingroup \catcode`\@11\relax \ifx\KOMAScriptVersion\undefined \newcommand*{\@CheckKOMAScriptVersion}[1]{% \gdef\KOMAScriptVersion{#1}% }% \else \newcommand*{\@CheckKOMAScriptVersion}[1]{% \def\@tempa{#1}% \ifx\KOMAScriptVersion\@tempa\else \@latex@warning@no@line{% \noexpand\KOMAScriptVersion\space is `\KOMAScriptVersion',\MessageBreak but `#1' was expected!\MessageBreak You should not use classes, packages or files from\MessageBreak different KOMA-Script versions% }% \fi } \fi \@CheckKOMAScriptVersion{2023/07/07 v3.41 KOMA-Script}% \endgroup %%% From File: $Id: scrhack.dtx 4063 2023-06-28 08:28:26Z kohm $ \ProvidesFile{setspace.hak}[% 2023/07/07 v3.41 KOMA-Script scrhack part (hacking package setspace)% ] %%% From File: $Id: scrhack.dtx 4063 2023-06-28 08:28:26Z kohm $ \scr@ifexpected{\onehalfspacing}{% \long\def\onehalfspacing{% \setstretch{1.25}% default \ifcase \@ptsize \relax % 10pt \setstretch {1.25}% \or % 11pt \setstretch {1.213}% \or % 12pt \setstretch {1.241}% \fi }% }{% \renewcommand*{\onehalfspacing}{% \@tempdima=\dimexpr (\f@size pt)*1500/ (\dimexpr \f@baselineskip\relax)*\p@/1000\relax \expandafter\setstretch\expandafter{\strip@pt\@tempdima}% }% }{% \scr@ifexpected{\onehalfspacing}{% \long\def\onehalfspacing{% \setstretch{1.25}% default \ifx\@ptsize\@undefined\else \ifcase \@ptsize \relax % 10pt \setstretch {1.25}% \or % 11pt \setstretch {1.213}% \or % 12pt \setstretch {1.241}% \fi \fi }% }{% \renewcommand*{\onehalfspacing}{% \@tempdima=\dimexpr (\f@size pt)*1500/ (\dimexpr \f@baselineskip\relax)*\p@/1000\relax \expandafter\setstretch\expandafter{\strip@pt\@tempdima}% }% }{% \PackageWarning{scrhack}{unknown \string\onehalfspacing\space definition found!\MessageBreak Maybe you are using a unsupported setpace version}% }% } \scr@ifexpected{\doublespacing}{% \long\def\doublespacing{% \setstretch{1.667}% default \ifcase \@ptsize \relax % 10pt \setstretch {1.667}% \or % 11pt \setstretch {1.618}% \or % 12pt \setstretch {1.655}% \fi }% }{% \renewcommand*{\doublespacing}{% \@tempdima=\dimexpr (\f@size pt)*2000/ (\dimexpr \f@baselineskip\relax)*\p@/1000\relax \expandafter\setstretch\expandafter{\strip@pt\@tempdima}% }% }{% \scr@ifexpected{\doublespacing}{% \long\def\doublespacing{% \setstretch {1.667}% default \ifx\@ptsize\@undefined\else \ifcase \@ptsize \relax % 10pt \setstretch {1.667}% \or % 11pt \setstretch {1.618}% \or % 12pt \setstretch {1.655}% \fi \fi }% }{% \renewcommand*{\doublespacing}{% \@tempdima=\dimexpr (\f@size pt)*2000/ (\dimexpr \f@baselineskip\relax)*\p@/1000\relax \expandafter\setstretch\expandafter{\strip@pt\@tempdima}% }% }{% \PackageWarning{scrhack}{unknown \string\doublespacing\space definition found!\MessageBreak Maybe you are using a unsupported setpace version}% }% } \endinput %% %% End of file `setspace.hak'.