robustified "warn" environment if \parindent is zero (e.g. within itemize, description etc.);
authorwenzelm
Sun Oct 17 20:00:23 2010 +0100 (2010-10-17)
changeset 39860788e902f3c59
parent 39859 381e16bb5f46
child 39861 b8d89db3e238
robustified "warn" environment if \parindent is zero (e.g. within itemize, description etc.);
doc-src/iman.sty
     1.1 --- a/doc-src/iman.sty	Sat Oct 16 21:24:20 2010 +0100
     1.2 +++ b/doc-src/iman.sty	Sun Oct 17 20:00:23 2010 +0100
     1.3 @@ -82,7 +82,8 @@
     1.4  \def\dbend{\vtop to 0pt{\vss\hbox{\Huge\bf!}\vss}}
     1.5  \newenvironment{warn}{\medskip\medbreak\begingroup \clubpenalty=10000 
     1.6           \small %%WAS\baselineskip=0.9\baselineskip
     1.7 -         \noindent \hangindent\parindent \hangafter=-2 
     1.8 +         \noindent \ifdim\parindent > 0pt\hangindent\parindent\else\hangindent1.5em\fi
     1.9 +         \hangafter=-2
    1.10           \hbox to0pt{\hskip-\hangindent\dbend\hfill}\ignorespaces}%
    1.11          {\par\endgroup\medbreak}
    1.12