jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

custom css

frenkiboy opened this issue · comments

Is it possible to import a custom css file for header formatting?

knitrBootstrap::bootstrap_document:
    css: header.css

gives the following error:

Error in (function (title = NULL, theme = "default", highlight = "highlightjs",  : 
  unused argument (css = "header.css")
Calls: <Anonymous> -> create_output_format -> do.call
Execution halted

You can use the custom.header option to provide any extra header logic like script or css includes.

But I would actually recommend you use rmarkdown::html_document(), which is more actively maintained.