【发布时间】:2010-12-30 17:17:45
【问题描述】:
我将 pgfsweave 与 Lyx 1.6.8 和 xtable 一起使用。 通过
提供表格标题<<result=tex>>=
print(xtable(<dataframe>,caption="Here is my caption"))
@.
如何在表格标题中插入一个标签,以便在 lyx>Insert>Cross-reference 菜单中的文本中进行交叉引用?
我尝试插入>float>table 并插入
print(xtable(<dataframe>,floating=FALSE)) 和
"Here is my caption" 在表格标题内框
但这会导致(字面意思):
[float Table:
<...Table ...>
[Table 2: "Here is my caption" ] ]
即使是交叉引用的赤脚解决方法
<<result=tex>>=
print(xtable(<dataframe>,caption="Here is my caption",label = "tab:one"))
@
来自 ERT-box 会有所帮助。
【问题讨论】:
-
我在你的问题和答案中添加了代码格式。