yihui / printr

Some (magical) printing methods for knitr
https://yihui.org/printr/
118 stars 24 forks source link

kable() and the margin of the page #9

Closed guilhermeparreira closed 8 years ago

guilhermeparreira commented 9 years ago

Hy all!

I want to control the way the table is printed using the kable function().

Instead of printing like this: (Because I don't like the extra space between columns) capture2

I would like to print like this: capture

I saw that depending on the template, the output of kable is different. How can I control it?

Thanks in advance, Guilherme

yihui commented 8 years ago

I guess Bootstrap probably defined the table width to be 100%, and you can override it using custom CSS: http://rmarkdown.rstudio.com/html_document_format.html#appearance-and-style

BTW, next time you may try StackOverflow if you have questions: http://stackoverflow.com/questions/tagged/rmarkdown I don't really keep track of general questions in Github issues, and sometimes it is easy to forget them.

guilhermeparreira commented 8 years ago

Tks Yihui!!

Good luck on your projects!! On 14 Jan 2016 8:39 pm, "Yihui Xie" notifications@github.com wrote:

Closed #9 https://github.com/yihui/printr/issues/9.

— Reply to this email directly or view it on GitHub https://github.com/yihui/printr/issues/9#event-515580241.