yihui/printr

kable() and the margin of the page

guilhermeparreira opened this issue · 2 comments

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

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.

Tks Yihui!!

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

Closed #9 #9.


Reply to this email directly or view it on GitHub
#9 (comment).