我看过this question,但是给出的方法似乎不适用于脚注(参见MWE)。我想知道如何使用kableExtra包在表脚注中添加超链接。
knitr::kable(
x = mtcars[1:4, 1:5]
, format = "latex"
, caption = "Table Caption with hyperlink[note]"
, escape = FALSE
) %>%
kableExtra::add_footnote("\\href{https://github.com/haozhu233/kableExtra}{kableExtra}")发布于 2017-09-11 14:42:33
当kableExtra > 0.5.0时,您可以在脚注中使用escape。
library(kableExtra)
knitr::kable(mtcars[1:4, 1:5],
format = "latex",
caption = "Table Caption with hyperlink[note]",
escape = FALSE
) %>%
add_footnote("\\href{https://github.com/haozhu233/kableExtra}{kableExtra}",
escape = F)https://stackoverflow.com/questions/46140973
复制相似问题