\begin{document} \section{Hi and table data} \begin{multicols}{3} <>= library(kableExtra) muestra = sample(10:60,size=80,replace=TRUE) tabla = data.frame(n=c(1:10), y=muestra[1:10]) kable(tabla,"latex", longtable = T,booktabs=T,caption="List of peoples") %>% kable_styling(latex_options= c("repeat_header"), font_size = 8) @ %================================== <>= library(kableExtra) muestra = sample(10:60,size=80,replace=TRUE) tabla = data.frame(n=c(11:21), y=muestra[11:21]) kable(tabla,"latex", longtable = T,booktabs=T) %>% kable_styling(latex_options= c("repeat_header"), font_size = 8) @ %=================================== <>= library(kableExtra) muestra = sample(10:60,size=80,replace=TRUE) tabla = data.frame(n=c(11:21), y=muestra[11:21]) kable(tabla,"latex", longtable = T,booktabs=T) %>% kable_styling(latex_options= c("repeat_header"), font_size = 8) @ %==================== %and continue until n = c(71:80) \end{multicols} \end{document}