From ec8f3b0707fbd15c6221da2ba49d3f47921141ac Mon Sep 17 00:00:00 2001 From: Sebastian Kuhnert Date: Thu, 13 Nov 2008 10:49:24 +0000 Subject: make \parskip after exercise headers explicit --- exercisesheets.sty | 4 +++- exercisesheets.tex | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/exercisesheets.sty b/exercisesheets.sty index 3cbdce2..e1a54a3 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -2,6 +2,7 @@ \def\filedate{2008/11/13} % TODO: allow \and in author and solutionsby +% TODO: fix "above hint skip" %\NeedsTeXFormat{LaTeX2e}[1994/12/01] \ProvidesPackage{exercisesheets}[\filedate\space\fileversion\space Typesetting of exercise sheets] @@ -165,7 +166,7 @@ above solutionsby skip/.initial={1ex}, below sheet header skip/.initial={4ex plus 1ex minus .5ex}, above exercise skip/.initial={3ex plus 1ex minus .5em}, - below exercise title skip/.initial={0pt}, + below exercise title skip/.initial={\parskip}, above solution skip/.initial={1ex}, above hint skip/.initial={1ex}, } @@ -461,6 +462,7 @@ [\pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}\exsh@exname\exsh@shortpoints]{\noindent% \pgfkeysvalueof{/exsh/strings/exercise}~\arabic{section}\exsh@exname\exsh@firstline\exsh@points}% \unskip\vskip\pgfkeysvalueof{/exsh/below exercise title skip}\relax + \vskip-\parskip\relax \@afterindentfalse \ignorespaces }{} diff --git a/exercisesheets.tex b/exercisesheets.tex index c421e35..ae3b10e 100644 --- a/exercisesheets.tex +++ b/exercisesheets.tex @@ -374,7 +374,7 @@ The following options allow fine-tuning of the spacing: Default: \texttt{3ex plus 1ex minus .5ex} \item[\option{below exercise title skip=\param{dimen}}] The distance below exercise titles.\\ - Default: \texttt{0ex} + Default: \texttt{\textbackslash parskip} \item[\option{above solution skip=\param{dimen}}] The distance above solutions.\\ Default: \texttt{1ex} -- cgit v1.2.3