如何设置表格脚注的字体大小

时间:2020-11-07 23:11:10

标签: r latex r-markdown kable

如何在RMarkdown文档中将字体大小设置为8pt并减小所有表格脚注的行距?目前,我的行距设置为两倍,字体大小为12pt。我正在制作pdf文档。

这是我目前的代码块:

kable(m,
    longtable = FALSE,
    format = "latex",
    booktabs = TRUE,
    align = c("l", "c", "c", "c", "c", "c", "c", "c", "c"),
    col.names = c("Prior Rating", "Aaa",    "Aa",   "A",    "Baa",  "Ba",   "B",    "Caa",  "Obs."),
    linesep = "\\addlinespace",
    caption = "Small Cooperative Transition Probability Matrix, 1996-2014"
  ) %>%
  add_header_above(c(" ", "Terminal Rating" = 7)) %>%
  kable_styling(latex_options = c("HOLD_position", "scale_down")) %>%
  kableExtra::footnote(general_title = "Note.",
                       general = "The standard errors are in parentheses; * indicates the probability is significantly different from its corresponding probability in the unconditional matrix at the 5% level.",
                       threeparttable = TRUE,
                       footnote_as_chunk = TRUE,
                       fixed_small_size = TRUE
  )

0 个答案:

没有答案