[comp.text.tex] HELP with format of Tabular or Paragraph in LaTex

mary@uicsl.csl.uiuc.edu (Mary E. Allison) (05/15/91)

I'm trying to figure out how to do something with a table using LaTeX.
I've figured out part of it but I'm still trying to work it all out.

Here's something close to what I'd like the output to look like.

		Lecturers

Speaker			DATE		TITLE

Dr. Sam Beckett		July 23, 1997	``There and Back Again, a
  Project QL				  Leapers Tale"

Capt. J.-L. Pickard	8497.5		``There and Back Again, a
  StarFleet				  Captain's Tale''

Mr. Bilbo Baggins	???		``There and Back Again, a
  Hobbit town				  Hobbit's Tale''

However, I'm having trouble figuring out the indentation without
having to figure out EXACTLY where the line is going to break for each
title.  (I know -- I could break it by hand but isn't that why we have
computers??).

Here's what I have so far.

\begin{tabular}{lll}
{\sc Speaker} & {\sc Date} & {\sc Title} \\ \\

\parbox[t]{2.25in}{Dr.\ Doogie Howser \\ Mayo Clinic } &
October 25, 1991  & \parbox[t]{2.5in}{``How to be a Successful Doctor
and Have a Hit TV Show}  \\ \\  

\parbox[t]{2.25in}{Mr. Warren Littlefield \\ NBC } & February 21, 1991
& \parbox[t]{2.5in}{``How to Survive a Barrage of Mail from Sex-Crazed
Quantum Leap Fans''} \\ \\  

\parbox[t]{2.25in}{Ms. Deborah Brown \\ Rochester, NY } & April 9,
1991 & \parbox[t]{2.5in}{``How to be a Sex-Crazed Quantum Leap Fan} \\
\\  

\end{tabular}

However, that doesn't give me the proper indentation.

Any suggestions?

THANKS


--
 =================== WEDNESDAY IS QUANTUM LEAP DAY =====================
  Square Dancers do it in groups of 8.       | What matter wounds to the
  in all positions - at 132 beats per minute | body of a knight errant
  Mary Allison (mary@uicslsah.csl.uiuc.edu)  | for each time he falls he
  University of Illinois at Urbana-Champaign | shall rise again and
  (currently owned by two cats)              | WOE to the wicked
 ====================== IS IT WEDNESDAY YET?? ==========================

piet@cs.ruu.nl (Piet van Oostrum) (05/17/91)

>>>>> mary@uicsl.csl.uiuc.edu (Mary E. Allison) (MEA) writes:

MEA> I'm trying to figure out how to do something with a table using LaTeX.
MEA> I've figured out part of it but I'm still trying to work it all out.

... Example deleted

An easy way to do this is to escape to the TeX primitive \parshape. I guess
you can also do it with a negative \parindent but then you need an extra
hspace to compensate.

The parshape makes your entries look like:

{\parbox[t]{2.5in}{\parshape=2 0pt 2.5in .1in 2.4in\relax Text to be
printed}

Of course it is better to put the common things into a macro. This gives
the following:

\newcommand{\pp}[1]{\parbox[t]{1.75in}{\parshape=2 0pt 1.75in .25in 1.5in\relax#1}}
\newcommand{\pq}[1]{\parbox[t]{2.5in}{\parshape=2 0pt 2.5in .1in 2.4in\relax``#1''}}
\noindent
\begin{tabular}{lll}
{\sc Speaker} & {\sc Date} & {\sc Title} \\ \\

\pp{Dr.\ Doogie Howser \\ Mayo Clinic } &
October 25, 1991  & \pq{How to be a Successful Doctor
and Have a Hit TV Show}  \\ \\  

\pp{Mr. Warren Littlefield \\ NBC } & February 21, 1991
& \pq{How to Survive a Barrage of Mail from Sex-Crazed
Quantum Leap Fans} \\ \\  

\pp{Ms. Deborah Brown \\ Rochester, NY } & April 9,
1991 & \pq{How to be a Sex-Crazed Quantum Leap Fan} \\
\\  

\end{tabular}
-- 
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31 30 531806   Uucp:   uunet!mcsun!ruuinf!piet
Telefax:   +31 30 513791   Internet:  piet@cs.ruu.nl   (*`Pete')