%%
%% This is file `setspace.hak',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% scrhack-2023-07-07.dtx  (with options: `hack,setspace,identify')
%% scrhack-2023-07-07.dtx  (with options: `hack,setspace,body')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from setspace.hak.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file scrhack-2023-07-07.dtx scrhack-2023-07-07.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesFile{setspace.hak}[%
  2024-04-17 v3.42
  scrhack part
  (hacking package
    setspace)%
]
\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'.
