[lug] [OT?] LaTeX Tables Question

Ed Hill ed at eh3.com
Wed Oct 29 12:04:46 MST 2003


On Wed, 2003-10-29 at 13:45, Dhruva B. Reddy wrote:
> For you LaTeX experts...
> 
> I'm writing a document in LaTeX, which contains tables with quite a bit
> of text in each cell.  By default, it does not wrap the text, so it gets
> pretty ugly.  Would anyone happen to know if this is possible and how to
> do it?
> 
> I tried a regular line break ("\\"), but doing that way would be quite
> messy.
> 
> Thanks,
> Dhruva

Hi Dhruva,

I believe a "parbox" is what you want.  Included below is an example

hth,
Ed

=== BEGIN ===

\begin{table}[htbp]
{\small
\begin{center}
\begin{tabular}{|p{0.8 true in}p{1.7 true in}p{3.3 true in}|}\hline
\rule[-3.0ex]{0.0ex}{8.0ex} \textbf{Reference}
  &  \parbox[c]{1.7in}{\textbf{Surfactant(s) / \\ NAPL(s)}}
  &  \textbf{Results}  \\\hline
  & & \\
\cite{Okuda_McBride_etal_96}
  &  Triton X-100 \textit{with} PCE
  &  \parbox[t]{3.3in}{
    1\% TX-100: aq=80\%, mac=20\%, mob=\textit{ND}; \\
    10\% TX-100: aq=58\%, mac=35\%, mob=6\% }  \\
  & & \\
\cite{Pennell_Pope_etal_96}  
  &  \parbox[t]{1.7in}{POE, Witconol 2722, \\ 4:1 MA/OT, 1:1 AY/OT 
  \\ \textit{with} PCE}
  &  \parbox[t]{3.3in}{
    4\% W2722: IFT=5.0, mob=\textit{ND}; \\
    4\% MA/OT: IFT=0.58, mob=\textit{significant}; \\
    4\% AY/OT: IFT=0.09, mob=\textit{significant};     }  \\
  & & \\
\cite{Pennell_Jin_etal_94}
  &  \parbox[t]{1.7in}{POE, 1:1 DASS/DOSS, \\ 4:1 DHSS/DOSS 
  \\ \textit{with} PCE }
  &  \parbox[t]{3.3in}{
    4\% POE: IFT=5.0, aq$\approx85\%$, mob$\approx15\%$; \\
    4\% POE: IFT=5.0, aq$>95\%$, mob$<5\%$; \\
    4\% {\scriptsize DASS/DOSS}: 
      IFT=0.09, aq$\approx18\%$, mob$\approx82\%$; \\
    4\% {\scriptsize DHSS/DOSS}: 
      IFT=0.58, aq$\approx22\%$, mob$\approx78\%$
  }  \\
  & & \\
\cite{Pennell_Abriola_etal_93}
  &  \parbox[t]{1.7in}{POE \textit{with} dodecane }
  &  \parbox[t]{3.3in}{
    4\% POE: IFT$\approx5.2$, aq=\textit{dominant}, mob=\textit{some}
  }  \\
  & & \\
\cite{Ducreux_Bocard_etal_92a}
  &  \parbox[t]{1.7in}{Sulfonates, APPE \\ \textit{with} gasoline, 
    fuel oil \#2 }
  &  \parbox[t]{3.3in}{
    Tests over a range of concentrations for each \\ 
    surfactant type were reported. \\
    Sulfonates: IFT=0.015--1.41, mob=\textit{dominant}; \\
    APPE: IFT=0.091--0.62, mob=\textit{dominant}
  }  \\
  & & \\
\cite{Tuck_Jaffe_etal_88}
  &  \parbox[t]{1.7in}{Emphos CS-136 \\ \textit{with} PCE }
  &  \parbox[t]{3.3in}{
    Column was only partially saturated with water. \\
    IFT not measured, mobilization important--bank formation
  }  \\
  & & \\\hline
\multicolumn{3}{|c|}{\rule[-4.2ex]{0.0ex}{9.5ex}
  \parbox[c]{5.5in}{Where: ``IFT'' is interfacial tension in 
    \textit{dynes/cm}, ``aq'' is the  mass removed by dissolution, 
    ``mob'' is the mass removed by mobilization and ``\textit{ND}'' 
    means not detected or not measured. }
  } \\\hline
\end{tabular}
\caption{Observations of dissolution and mobilization during
surfactant flushing. \label{tab:surf_columns}}
\end{center}
\small}
\end{table}

=== END ===

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Room 54-1424;  77 Massachusetts Ave.
            Cambridge, MA 02139-4307
email:   eh3 at mit.edu,  ed at eh3.com
URL:     http://web.mit.edu/eh3/
phone:   617-253-0098
fax:     617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20031029/08d1dca4/attachment.pgp>


More information about the LUG mailing list