diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/tudscr/tudscr-layout.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/tudscr/tudscr-layout.dtx | 69 |
1 files changed, 47 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/tudscr/tudscr-layout.dtx b/Master/texmf-dist/source/latex/tudscr/tudscr-layout.dtx index 0468e2b14db..4604eedc717 100644 --- a/Master/texmf-dist/source/latex/tudscr/tudscr-layout.dtx +++ b/Master/texmf-dist/source/latex/tudscr/tudscr-layout.dtx @@ -1,4 +1,4 @@ -% \CheckSum{1212} +% \CheckSum{1246} % \iffalse meta-comment % % ============================================================================ @@ -51,7 +51,7 @@ %<*driver> \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi \ProvidesFile{tudscr-layout.dtx}[% - 2016/03/26 v2.04d TUD-KOMA-Script (layout)% + 2016/06/17 v2.04e TUD-KOMA-Script (layout)% ] \RequirePackage[ngerman=ngerman-x-latest]{hyphsubst} \documentclass[english,ngerman]{tudscrdoc} @@ -1149,27 +1149,52 @@ %<*book|report> \newcommand*\tud@@startpart{}% \let\tud@@startpart\scr@@startpart% - \patchcmd{\tud@@startpart}{% - \ifnumbered{#1}{% - \usekomafont{#1prefix}{\@nameuse{#1format}}% - \setlength{\@tempskipa}{\@nameuse{scr@#1@innerskip}}% - \partheadmidvskip - }{}% - }{% - \ifnumbered{#1}{% - \usekomafont{#1prefix}{\tud@makeuppercase{\@nameuse{#1format}}}% - \if@tud@parttitle% - \enskip% - \else% - \tud@headmidvskip% - \fi% + \ifcsdef{scr@v@3.21}{\@tempswatrue}{\@tempswafalse}% + \if@tempswa% + \patchcmd{\tud@@startpart}{% + \ifnumbered{#1}{% + \usekomafont{#1prefix}{\nobreak\@nameuse{#1format}}% + \setlength{\@tempskipa}{\@nameuse{scr@#1@innerskip}}% + \partheadmidvskip + }{}% }{% - \if@tud@parttitle\else% - \usekomafont{#1prefix}{\vphantom{\partname}}% - \tud@headmidvskip% - \fi% - }% - }{}{\tud@patch@wrn{scr@startpart}}% + \ifnumbered{#1}{% + \usekomafont{#1prefix}{\nobreak\tud@makeuppercase{\@nameuse{#1format}}}% + \if@tud@parttitle% + \enskip% + \else% + \tud@headmidvskip% + \fi% + }{% + \if@tud@parttitle\else% + \usekomafont{#1prefix}{\vphantom{\partname}}% + \tud@headmidvskip% + \fi% + }% + }{}{\tud@patch@wrn{scr@startpart}}% + \else% + \patchcmd{\tud@@startpart}{% + \ifnumbered{#1}{% + \usekomafont{#1prefix}{\@nameuse{#1format}}% + \setlength{\@tempskipa}{\@nameuse{scr@#1@innerskip}}% + \partheadmidvskip + }{}% + }{% + \ifnumbered{#1}{% + \usekomafont{#1prefix}{\tud@makeuppercase{\@nameuse{#1format}}}% + \if@tud@parttitle% + \enskip% + \else% + \tud@headmidvskip% + \fi% + }{% + \if@tud@parttitle\else% + \usekomafont{#1prefix}{\vphantom{\partname}}% + \tud@headmidvskip% + \fi% + }% + }{}{\tud@patch@wrn{scr@startpart}}% + \fi% %</book|report> % \end{macrocode} % \end{macro}^^A \scr@@startpart |