I have this xtable and I'd like to set the fontsize
I am doing:
library(xtable)
options(xtable.include.rownames=F)
#options(xtable.scalebox=.5)
options(xtable.size = "small")
options(xtable.tabular.environment = "longtable")
#options(xtable.width = "10 in")
options(xtable.comment=F)
options(xtable.floating = F)
#options("xtable.latex.environments", c("center"))
t = xtable(MYTABLE)
align(t) = "r|p{1.3cm}|p{1.25cm}|p{2cm}|p{.5cm}|p{1.8cm}|p{1.5cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}|"
digits(t) = c(0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1)
print(t, sanitize.text.function = identity,hline.after = c(-1,seq(0,nrow(t))) , add.to.row = list(pos = list(0), command = "\\hline \\endhead ") )
options(xtable.size = "small") does not change the font size. Is there a way I can change the font size with options(xtable.size = ??) or fontsize = 9?
I see here https://cran.r-project.org/web/packages/xtable/vignettes/xtableGallery.pdf you can use the add.to.row to change options but can font size be changed that way somehow?
add.to.row <- list(pos = list(0), command = NULL)
command <- paste0("\\hline\n\\endhead\n",
"\\hline\n",
"\\multicolumn{", dim(x)[2] + 1, "}{l}",
"{\\footnotesize Continued on next page}\n",
"\\endfoot\n",
"\\endlastfoot\n")
add.to.row$command <- command
print(x.big, hline.after=c(-1), add.to.row = add.to.row,
tabular.environment = "longtable")
Thank you.