Re: strange error with tabular

2011-03-16 Thread Paul Rubin
S Nedunuri  cs.utexas.edu> writes:

> 
> yes it does. Thanks!
> 
> Funny that whatever latex processor Lyx is calling doesn't stumble on this.
> 

LyX automatically adds certain packages to the preamble if it spots the need for
them, but it only sees one of a set of known "triggers".  Best guess, what you
were doing didn't hit a known trigger.  You could file a bug report.  I don't
know enough LaTeX to know if there is a fairly concise set of conditions under
which it is obvious that array is needed (or whether it is safe to say that any
time the user futzes with optional commands for columns, array should be 
loaded).

Paul



Re: strange error with tabular

2011-03-15 Thread S Nedunuri
yes it does. Thanks!

Funny that whatever latex processor Lyx is calling doesn't stumble on this.

"Paul Rubin"  wrote in message 
news:loom.20110315t230814-...@post.gmane.org...
> Does adding \usepackage{array} to the preamble cure it?
>
> Paul
>
>
> 





Re: strange error with tabular

2011-03-15 Thread Paul Rubin
Does adding \usepackage{array} to the preamble cure it?

Paul




Re: strange error with tabular

2011-03-15 Thread S Nedunuri
BTW, i forgot to mention i'm using Lyx 1.6.6 and MikTex 2.8

"S Nedunuri"  wrote in message 
news:ilohef$dmb$1...@dough.gmane.org...
> Hello I generated latex from my lyx file and then seperately compile it 
> (in order to use a particular document class not part of the lyx 
> distribution). Normally there's no problem, but when I adjust the widths 
> of columns in my table in Lyx, and then compile the generated latex, I get 
> the following error message from  latex:
>
> ! Use of \@array doesn't match its definition.
> \new@ifnextchar ...served@d = #1\def \reserved@a {
>  #2}\def \reserved@b 
> {#3}\f...
> l.1275 ...{\centering}p{1in}|>{\centering}p{1in}|}
>
> ?
>
> The offending line is:
>
> \begin{tabular}{|c|>{\centering}p{1in}|>{\centering}p{1in}|>{\centering}p{1in}|>{\centering}p{1in}|}
>
> Incidentally, not adjusting the column widths generates the following 
> latex which compiles fine:
>
> \begin{tabular}{|c|c|c|c|c|}
>
> Any ideas?
>
>
> 





strange error with tabular

2011-03-15 Thread S Nedunuri
Hello I generated latex from my lyx file and then seperately compile it (in 
order to use a particular document class not part of the lyx distribution). 
Normally there's no problem, but when I adjust the widths of columns in my 
table in Lyx, and then compile the generated latex, I get the following 
error message from  latex:

! Use of \@array doesn't match its definition.
\new@ifnextchar ...served@d = #1\def \reserved@a {
  #2}\def \reserved@b 
{#3}\f...
l.1275 ...{\centering}p{1in}|>{\centering}p{1in}|}

?

The offending line is:

\begin{tabular}{|c|>{\centering}p{1in}|>{\centering}p{1in}|>{\centering}p{1in}|>{\centering}p{1in}|}

Incidentally, not adjusting the column widths generates the following latex 
which compiles fine:

\begin{tabular}{|c|c|c|c|c|}

Any ideas?