diff options
| -rw-r--r-- | exercisesheets.sty | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty index a3b4d6b..a18768b 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -604,9 +604,17 @@ \def\exsh@startsolution{\@afterindentfalse \vskip\pgfkeysvalueof{/exsh/above solution skip}\relax% {\parindent \z@ - \pgfkeysvalueof{/exsh/solution title font}\nobreak - \pgfkeysvalueof{/exsh/strings/solution}:\par\nobreak}\nobreak% - \@afterheading + \pgfkeysvalueof{/exsh/solution title font}% + \pgfkeysvalueof{/exsh/strings/solution}:\par}\nobreak% + \@nobreaktrue + \everypar{% + \if@nobreak + \@nobreakfalse + \clubpenalty \@M + \else + \clubpenalty \@clubpenalty + \everypar{}% + \fi}% }% \long\def\exsh@skipsolution#1{% |
