\def\hazard#1{% The argument is the text of the paragraph
\setbox0=\vbox{#1}% I do this to work out the height of the paragraph
\inleft [low] {%
\framed%
[height=\ht0,% This makes the height of the frame equal to the height of the paragraph
top=\vss,%
bottom=\vss,% These two lines centre the picture in the frame
frame=off]%
{\externalfigure [sharp turn sign]}%
}%
#1}% It goes wrong if you replace #1 with \box0
If I type something like
\hazard{…paragraph text…}
this produces what I want. But it breaks down with mathematics.
\hazard{% \startformula …mathematics… \stopformula }
produces the picture aligned with the bottom of the mathematics.
A solution to this problem escapes me. Can anyone suggest an improved macro?
Best wishes,
Jonathan
-----------------------
Jonathan Nicholl Department of Philosophy King's College London
_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context