R bookdown gitbook - how to override table style

佐手、 提交于 2019-12-06 07:33:50

问题


I like the gitbook style in general, but some tables (particularly regression tables) look awful on it. How do I make specific tables in my document (not all of them) render as per the default bootstrap style?

I suspect this can be done by defining a custom css class and then modifying the function that creates the regression table to include that custom class, but I'd like to know if there's a more elegant or simpler way.

If I use bookdown::gitbook to render my Rmd file, it looks like the one on the left, which just looks broken. If I use bookdown::html_document2 or bookdown::html_book, it looks like the one on the right, which is what I want. I prefer how gitbook renders everything else though.

来源:https://stackoverflow.com/questions/39331971/r-bookdown-gitbook-how-to-override-table-style

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!