[comp.text.tex] LaTex \topfigrule

rjc@uk.ac.ed.cstr (Richard Caley) (10/29/90)

I have a document with lots of figures which look rather similar to
things which might turn up as displays in the text and this can be
confusing when turning a page and so I have been trying to use the
semi-undocumented ( i.e. commented in the source ) \topfigrule ( and
\botfigrule ) command.

The coments say it must have zero height and that it is set in inner
vertical mode, so I did the following...

     \def\topfigrule{\kern 5\p@ 
	    \hfil\hbox to 2in {\leaders\hrule height 1\p@\hfil}
	    \vskip 0\p@
	    \kern -6\p@}

That is skip down, put in a rule and skip back up. This works fine on
trivial examples but at a particular point in my document it causes
LaTeX to hang up. 

It just sits there, as far as I can tell forever. Certainly I have
never managed to wait long enough for it to finish.

There is nothing special at that point in the text and ointerrupting
it gives ---

    ! Interruption.
    <to be read again>
		       \vskip
    \topfigrule ... \hrule height 1\p@ \hfil } \vskip
						      0\p@ \kern -6\p@
    \@cfla ...@tempboxa \vskip -\floatsep \topfigrule
						      \vskip \textfloatsep \unvb...
    [ and so on ... ]

This seems to be consistant, it is always doing the \vskip.

Can someone enlighten my darkness?

--
rjc@uk.ac.ed.cstr