Output table width in Rmarkdown

后端 未结 1 576
南笙
南笙 2020-12-31 00:29

I\'m using Rmarkdown to create a document. I want to include markdown tables, but they are all scaled to the width of the page. I\'d like to specify a relative width of say.

相关标签:
1条回答
  • 2020-12-31 00:44

    If you're outputting an html document you need to modify the css. You can add this directly to the Rmd document:

    <style type="text/css">
    .table {
    
        width: 40%;
    
    }
    </style>
    
    0 讨论(0)
提交回复
热议问题