[texhax] Table problem
Peter Flom
flom at ndri.org
Fri Jul 15 18:51:46 CEST 2005
Thanks!
That worked perfectly
Peter
>>> Steve Schwartz <s.schwartz at imperial.ac.uk> 7/15/2005 12:40:20 PM
>>>
Peter,
You have one too many column specifiers in your tabular environment by
comparison to what you have in your table. change lrrrrrr to lrrrrr
That fixes the right edge problem.
I think the right justfication problem arrises because you put the
contents in a parbox which gets typeset flushleft in the specified
width. Putting a \flushright inside the parbox text pushes all the
text
to the right though that is perhaps not exactly what you want.
HTH
Steve
On Fri, 2005-07-15 at 12:12 -0400, Peter Flom wrote:
> When I typeset
>
> \begin{table}[h]
> \begin{center}
> \begin{tabular}{|lrrrrrr|}\hline
> Parameter & DF & Estimate &
> \multicolumn{1}{r}{\parbox{.6in}{Standard \\error}} &
> \multicolumn{1}{r}{\parbox{.5in}{Wald \\ Chi-square}} &
> p-value \\ \hline
> Intercept 2: Hard & 1 & -0.3685 & 0.9375 & 0.1545 & 0.6943
> \\
> Intercept 1: MJ & 1 & 1.1565 & 0.9395 & 1.5155 & 0.2183
> \\
> Factor 1 & 1 & -1.3145 & 0.1284 & 104.85 & $<$ 0.0001
> \\
> Age & 1 & 0.0892 & 0.0437 & 4.1685 & 0.0412
> \\
> Female & 1 & -1.3931 & 0.1876 & 55.1246& $<$ 0.0001
> \\\hline
> \end{tabular}
> \end{center}
> \end{table}
>
>
> for some reason 1) There's no line on the right edge of the table,
> despite the fact that I have a | after the last r in the tabular
> command
> 2) The text in the parboxes is left aligned, despite the fact that I
> have an r in the multicolumn command
>
> Any help appreciated
>
> Peter
>
> Peter L. Flom, PhD
> Assistant Director, Statistics and Data Analysis Core
> Center for Drug Use and HIV Research
> National Development and Research Institutes
> 71 W. 23rd St
> www.peterflom.com
> New York, NY 10010
> (212) 845-4485 (voice)
> (917) 438-0894 (fax)
>
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management:
http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
--
+-------------------------------------------------------------------+
Professor Steven J Schwartz Phone: +44-(0)20-7594-7660
Space and Atmospheric Physics Fax: +44-(0)20-7594-7772
The Blackett Laboratory E-mail: s.schwartz at imperial.ac.uk
Imperial College London Office: Huxley 6M70
London SW7 2BW, U.K. Web: http://www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+
More information about the texhax
mailing list