From 1f4ae7ade1db6dd9d9509a1fcf16415579b9aa05 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 17 Jun 2016 22:17:02 +0000
Subject: tudscr (17jun16)

git-svn-id: svn://tug.org/texlive/trunk@41474 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/tudscr/tudscrreprt.cls | 69 +++++++++++++++-------
 1 file changed, 47 insertions(+), 22 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrreprt.cls')

diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrreprt.cls b/Master/texmf-dist/tex/latex/tudscr/tudscrreprt.cls
index a187681e595..1c4d9845a7b 100644
--- a/Master/texmf-dist/tex/latex/tudscr/tudscrreprt.cls
+++ b/Master/texmf-dist/tex/latex/tudscr/tudscrreprt.cls
@@ -70,14 +70,14 @@
       \fi%
     }%
   \fi%
-  \@TUDVersion{2016/03/26 v2.04d TUD-KOMA-Script}%
+  \@TUDVersion{2016/06/17 v2.04e TUD-KOMA-Script}%
 \endgroup%
 \providecommand*\tudscrmail{tudscr@gmail.com}
 \newcommand*\TUD@ProvidesClass[3]{%
   \newcommand*\TUDClassName@KOMA{#2}%
   \@ifundefined{TUDClassName@Parent}{\newcommand*\TUDClassName{#1}}{}%
   \ProvidesClass{#1}[%
-  2016/03/26 v2.04d TUD-KOMA-Script
+  2016/06/17 v2.04e TUD-KOMA-Script
     ^^J#3 (#2)%
   ]%
   \@ifundefined{TUDClassName@Parent}{\TUD@ClassInfo}{}%
@@ -3850,27 +3850,52 @@
 \if@tempswa
   \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%
   \newcommand*\tud@@startspart{}%
   \let\tud@@startspart\scr@@startspart%
   \patchcmd{\tud@@startspart}{%
-- 
cgit v1.2.3

