Re: Cross-referencing a table inserted into ERT.

2007-11-23 Thread michael papenfus
I think I needed to be a bit more specific in my original question, so
let modify my original question.

I would like to insert a ctable in my lyx document and have that table
included in my List of Tables in the TOC and be a able to
cross-reference the table in text.
It my understanding that only figures and tables included in a lyx
floating environment will be included in the TOC. (maybe I am wrong on
this point if there is a work-around).
So what I think I need to do is insert a floating table in my document
and then insert the ctable using ERT within that float.  Here is some
the source for what I have done:

 \begin{table}


\caption{Hedonic Variable Summary }
\ctable[ cap=Hedonic Variable Summary, caption=Sample Means
and Standard Deviations for Parcel Sale Prices and Selected Variables,
label=tab:vsummary, ]{lcc}{ \tnote{See text for additional detail}
}{  \FL Variable
 & Sample Mean   & Standard Deviation\ML \emph{Dependent
Variable} & & \NN Price (/1000)   & 195.80  & 135.57
 \NN[0.5em] \emph{Lake Characteristics} & &
 \NN Water Clarity(m)& 3.10  & 1.195   \NN
Lake Size   & 413.5  & 395.6\NN Sensitivity
& 11.98   & 1.70   \NN Public Lake & 0.805
  & 0.396   \NN Distance& 12.78  &
8.374  \NN[0.5em] \emph{Parcel Characteristics} &&
   \NN Undeveloped & 0.243& 0.430
 \NN Frontage& 178.74  & 123.74
 \NN Frontage$^2$   & 47.25   & 96.99 \NN
Lotsize   & 9.00 & 11.90  \NN Lotsize$^2$
& 2.23   & 12.72 \NN[0.5em]
\emph{Development Variables} &  &   \NN
PerPrivate  & 0.881& 0.170   \NN Hdensity
  & 4.552& 1.631  \LL }


\end{table}

I get the Latex Error: Not in outer par mode.

It doesn't surprise me that this doesn't work as there most be a
conflict between \begin{table} and \ctable.

Does anyone know of a work-around for this so that I can include
ctables in my document and have then included in the TOC and to be
able to cross-reference them in the text.
thanks again,
Micheal


Cross-referencing a table inserted into ERT.

2007-11-22 Thread michael papenfus
Hi,
I am inserting a few tables I created using the ctable package.
These tables are inserted into my lyx document directly as Tex (ERT).
I include label=tab:Table X in the ctable options, but when I attempt
to insert a cross-reference the labels I created in ctable do not
appear in the cross-reference list.
Is there a work around for this?
I could also just manually include the cross reference but I prefer
that it be automated.

thank you for any input.
Michael