I am using pgfsweave with Lyx 1.6.8 and xtable. providing table captions by
<<result=tex>>=
print(xtable(<dataframe>,caption="Here is my caption"))
@.
How can I insert a label into the table caption that I can crossreference in the text from the lyx>Insert>Cross-reference menu?
I have tried to insert>float>table and inserted
print(xtable(<dataframe>,floating=FALSE))
and
"Here is my caption"
in the Table caption inner frame
but this results in (literally):
[float Table:
<...Table ...>
[Table 2: "Here is my caption" ] ]
Even a barefoot workaround to crossreference
<<result=tex>>=
print(xtable(<dataframe>,caption="Here is my caption",label = "tab:one"))
@
from an ERT-box would help.