Override rmarkdown theme in order to change html page width

后端 未结 2 1009
南旧
南旧 2020-12-13 20:28

I\'m trying to widen the output of rmarkdown to html. I\'ve been trying this solution with no success (although I\'m using the cerulean theme, that should be responsive acco

2条回答
  •  生来不讨喜
    2020-12-13 21:20

    Add these style definitions directly to your RMarkdown document:

    
    

    Alternatively you can put the style definitions in an external file like styles.css which you link to by setting the appropriate options in the YAML header as described here:

     ---
     output:
       html_document:
         css: styles.css
     ---
    

    Both options work for me.

提交回复
热议问题