- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Latex, tabular screwed
- From: Alan L Tyree <alan@xxxxxxxxxxxxxx>
- Date: Tue, 2 May 2006 17:15:13 +1000
- Organization: Sage Tutorial Systems Pty Ltd
On Tue, 02 May 2006 16:09:40 +1000
Terry Collins <terryc@xxxxxxxxxx> wrote:
> I'm having trouble with tabular environemt in latex atm[1]. Basically,
> it just finding errors that don't give a clue.
>
>
> \begin{tabular}{|p|c|c|c|c|c|c|} \hline
> mass (M g) & 10.0 & 10.5 & 11.0 &
> 11.5 & 12.0 & 12.5 \\ \hline Extension ( e mm) &
> 16 & 18 & 22 & 25 & 26 & 30 \\
> \hline \end{tabular}
>
> gives the error
> ! Missing number, treated as zero.
> m
> ass (M g) & 10.0 & 10.5 & 11.0 &
> 11.5 & 12.0 & 12.5 \\ \hline
>
> Basically, what frigging number does it want?
> and why is it looking for it on the first line?
>
>
> and inserting the only number I can think of
>
> \begin{tabular}{150mm}{|p|c|c|c|c|c|c|} \hline
> mass (M g) & 10.0 & 10.5 & 11.0 &
> 11.5 & 12.0 & 12.5 \\ \hline Extension ( e mm) &
> 16 & 18 & 22 & 25 & 26 & 30 \\
> \hline \end{tabular}
>
> gets the error
>
> ! LaTeX Error: Illegal character in array arg.
>
>
> TIA
Replace \begin{tabular}{|p|c|c|c|c|c|c|} \hline
with
\begin{tabular}{|p{3cm}|c|c|c|c|c|c|} \hline
Cheers,
>
>
>
> [1]
> Debian sarge in case it matters
>
> --
> Terry Collins {:-)}}}
> email: terryc at woa.com.au www: http://www.woa.com.au
> Wombat Outdoor Adventures <Bicycles, Computers, Outdoors,
> Publishing>
>
> "Any society that would give up a little liberty to gain a little
> security will deserve neither and lose both." Benjamin Franklin
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
--
Alan L Tyree http://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670 Mobile: +61 428 148 071
Fax: +61 2 4782 7092 FWD: 615662