## HELP :: \leaders in internal vertical mode

### HELP :: \leaders in internal vertical mode

hi,

it seems to me that i am having to go thru way too much effort
just to draw a box around some text.  when i use \halign blocks and
draw rules around them, i don't have any problems, but when i have
a variable amount of text inside a fixed size box it seems that
something goes way over my head.

below, i have included the macros i am using to accomplish my task.
they work just about right.  the problem i am having is that after
i get several of these boxes on a page, i end up with a dot here and
there, or sometimes a horizontal line across the page where the
vertical lines of the myboxes are missing a dot.

the missing dots are always on the boundary between sections of
text.  notice line 2 in macro \beginmybox (\hbox to \myboxwidth ...).
this is basically my \vskip but keep drawing the vertical lines around
mybox.  i thought the problem might be with the glue so i tried a
different method found in line 6 of the same macro (\doubleline...).
it didn't work.

another problem comes from the \doubleline macro.  the smaller
i make the vrule height the cleaner the vertical lines come out.
for some reason i can't get a solid line at all if the vrule height
in this macro is any higher than .4pt regardless of the glue.  and
further, if i bring the vrule height down below .25pt, after i get
around forty myboxes on a page dviscr blows off on memory.

anyway, if there is some texpert out there who knows the three
line solution, please send me mail.  even if you think you can shed
any light on my problem, i would be glad to hear from you.  btw -
i am using emtex if that matters.

...robert

----cut here----

\normallineskip 0pt
\baselineskip 0pt
\font\sbig cmr17
\font\ss cmr5
\font\sb cmbx5
\hfuzz=.4in
\def\myboxwidth{1.49in}
\def\myboxheight{1.3in}
\def\insidemargin{1.3in}

\def\beginmybox#1{
\hrule
\hbox to \myboxwidth{\vrule height 3pt\hfil\vrule height 3pt}
\nointerlineskip
\hbox to \myboxwidth{\sbig\vrule\hfil#1\hfil\vrule}
\nointerlineskip
\doubleline{\vbox to 3pt}\nointerlineskip

Quote:}

\def\withinmybox#1#2{
\hbox to \myboxwidth{\vrule\hfil{\ss{\hsize \insidemargin
\vbox{\raggedright\hangindent 1em #1
{\sb #2}}}}\hfill\vrule}
\nointerlineskip

Quote:}

\def\endmybox{\doubleline{}
\nointerlineskip
\hrule

Quote:}

\def\doubleline#1{#1{
\hfil\vrule height .25pt}\vskip 0pt plus .1pt minus .1pt}

Quote:}

\beginmybox{Title}
\withinmybox{this is light,}{this is dark}
\withinmybox{i never know how many of these entries are going to be}{}
\withinmybox{sometimes there will even be}{none}
\endmybox

\end

I'm trying to building a latex document using a locally created thesis
stylesheet which is a modification of the report stylesheet.  This
thesis stylesheet works correctly.

When I try to build a dvi file I get the following error message:

! You can't use `\end' in internal vertical mode.

I am puzzled by this error message and the Lamport book isn't very clear
on what to do with this error message.

It is complaining about the \end{document} statement.

I assume that I used a latex command earlier in the document that did not
have any sort of end statement.

Could someone shed some light for me?

many thanks,
-bill
--

Tulane University                       http://www.cs.tulane.edu/www/Thomason
New Orleans, LA 70118

2. Question