I am using pgfsweave with Lyx 1.6.8 and xtable. providing table headers
<<result=tex>>=
print(xtable(<dataframe>,caption="Here is my caption"))
@.
How can I insert a label in the table title so that I can cross-reference in the text from the lyx> Insert> Cross-reference menu?
I tried to insert a table> float> and put
print(xtable(<dataframe>,floating=FALSE))and
"Here is my caption"in the internal frame header of the table but it leads to a (literally):
[float Table:
<...Table ...>
[Table 2: "Here is my caption" ] ]
Even a lateral cross-snapping solution
<<result=tex>>=
print(xtable(<dataframe>,caption="Here is my caption",label = "tab:one"))
@
from ERT-box will help.
source
share