\begin{tabbing}
line1 \= stuff1 \\
line2 \> \begin{minipage}[t]{2in}\raggedright
this is an entry for a field
that needs to be wrapped
\end{minipage} \\
line3 \> stuff3
\end{tabbing}
This works fine, except for a quirk with vspace.
If the minipage is more than one line long (as it presumably
would be in the above example), then LaTeX leaves almost
no vspace between the last line of the minipage and
the next line of text. But if the minipage fits on one line,
then LaTeX does its normal vspace. So I seem to need to
insert vspace CONDITIONALLY, depending on whether the
contents of the minipage required more than one line.
Is there a simple way to do this?
Alternatively, it seems like there must be an easier
way to get multiline entries in a tabbing. I am using
a tabbing (as opposed to tabular) because my table is
many pages long. I am using a minipage (as opposed to
a parbox) because inside the minipage I am doing
hairy things with catcodes that don't work inside
the argument to a parbox.
Any help would be greatly appreciated.
Andy
----------
P.S. Here is a simple file to demonstrate the problem.
All rows come out equally spaced, except that the EEEE
is too close to the GGGG.
\documentstyle{report}
\begin{document}
\begin{tabbing}
MMMM\=\kill
AAAA \> BBBB \\
CCCC \> \begin{minipage}[t]{2in}DDDD \\ EEEE\end{minipage} \\
FFFF \> GGGG \\
HHHH \> \begin{minipage}[t]{2in}IIII \end{minipage} \\
JJJJ \> KKKK
\end{tabbing}
\end{document}
>In a tabbing environment (in LaTeX), I have entries
>in some fields that are too wide to fit. So I would
>like them to automatically wrap around as needed
>within their field width. The way I am currently
>doing this is to enclose them in a minipage
>within the tabbing. For example:
>
> \begin{tabbing}
> line1 \= stuff1 \\
> line2 \> \begin{minipage}[t]{2in}\raggedright
> this is an entry for a field
> that needs to be wrapped
> \end{minipage} \\
> line3 \> stuff3
> \end{tabbing}
>
>This works fine, except for a quirk with vspace.
>...
I found that nesting a tabular rather than
a minipage within the tabbing environment fixed
the vspace problem.
Andy