Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

\lineheight type command (analogous to \linewidth)?

648 views
Skip to first unread message

sino...@gmail.com

unread,
Aug 19, 2009, 6:15:15 PM8/19/09
to
I'm trying to introduce some multi-line verbatim text into a tabular
environment that properly aligns with the line it's on at the top.
For example:

\begin{tabular}{lp{3cm}l}
A &
\begin{verbatim}
B
C
\end{verbatim}
&
D
\end{tabular}

But it seems like an extra line of text is gratuitiously inserted
above the verbatim environment. I can't figure out how to get rid of
this, so I'd like to insert something like

\vspace{-\lineheight}

analogously to \linewidth. But there isn't any \lineheight command.
Does anyone have suggestions on obtaining the desired result?

Donald Arseneau

unread,
Aug 20, 2009, 5:00:03 AM8/20/09
to
On Aug 19, 3:15 pm, "sinos...@gmail.com" <sinos...@gmail.com> wrote:
> I'm trying to introduce some multi-line verbatim text into a tabular
> environment that properly aligns with the line it's on at the top.

Put it in a minipage environment.

Also see packages listed here:

http://groups.google.com/group/comp.text.tex/browse_frm/thread/f7e16961ca6edaed/

and varwidth.sty

Donald Arseneau

0 new messages