如何解决Bookdown 和表格交叉引用
最近,自 2020 年 12 月中下旬以来,bookdown 和 pagedown 已停止识别 gt. 生成的表格标签。 kable() 中的字幕仍可识别:
knitr::kable(
head(mtcars[,1:8],3),caption = 'A table of the first 3 rows of the mtcars data.'
)
产生,“表 1:mtcars 数据前 3 行的表。”作为标题,但是:
gt::gt(head(mtcars[,caption = 'A table of the first 3 rows of the mtcars data.')
生成,“(#tab:gtTable)mtcars 数据前 3 行的表格。”
目前使用的版本:bookdown (0.21),pagedown (0.13),& gt (0.2.2)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。