Jupyterlab和Jupyter r内核

时间:2019-04-29 15:22:33

标签: python-3.x pandoc jupyterhub jupyter-irkernel

我已经在JupyterLab中安装了r内核。 使用此代码段,我构建了一个HTML文件,并使用LaTeX将其转换为PDF文件。我希望能够根据自己的要求更改桌子的外观。与书本一样,如何更改框架,纸张尺寸和左侧和右侧的边距? html文件显示正确的表格边框。

library(knitr)
library(kableExtra)
library(IRdisplay)

kable(alpha, format = "html", caption = "Caption", longtable = TRUE) %>%
kable_styling(c("striped", "bordered", "hover", "condensed", "responsive"), full_width = F, font_size = 12 ) %>%
save_kable(file = "alpha.html")
as.character() %>%
display_html()

kable(beta, format = "html", caption = "Caption", longtable = TRUE) %>%
kable_styling(c("striped", "bordered", "hover", "condensed", "responsive"), full_width = F, font_size = 12 ) %>%
save_kable(file = "beta.html")
as.character() %>%
display_html()

pandoc('alpha.html', format='latex')
pandoc('beta.html', format='latex')

0 个答案:

没有答案