Pagedown: where I am supposed to define these css classes?

Created on 6 Feb 2019  路  3Comments  路  Source: rstudio/pagedown

where I am supposed to define these css classes?

_Originally posted by @Xinzhu-Fang in https://github.com/rstudio/pagedown/issues/50#issuecomment-460910293_

Most helpful comment

Based on the documentation, it seems like you'd create a separate CSS file and include it in the output format:

output:
  pagedown::html_paged: 
    css: ["custom_css_file.css", "default-fonts", "default-page", "default"]

All 3 comments

title: "my resume"

output: 
  pagedown::html_resume
---



<style>
.break-after-me {
  break-after: page;
}
</style>


This gives me a warning message MathJax doesn't work with self_contained when not using the rmarkdown "default" template. My resume is messed up

Based on the documentation, it seems like you'd create a separate CSS file and include it in the output format:

output:
  pagedown::html_paged: 
    css: ["custom_css_file.css", "default-fonts", "default-page", "default"]

Thank you. Should read more carefully as always.
In my particular case, I did:

output:
  pagedown::html_resume:
    css: ["my_custom.css", "resume"]

then it worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atusy picture atusy  路  3Comments

cderv picture cderv  路  4Comments

lgnbhl picture lgnbhl  路  4Comments

RLesur picture RLesur  路  4Comments

xf15 picture xf15  路  4Comments