Creating a footer for every page using R markdown

后端 未结 3 1723
再見小時候
再見小時候 2020-12-08 04:34

I\'m writing a document in R Markdown and I\'d like it to include a footer on every page when I knit a PDF document. Does anyone have any idea on how to do this?

3条回答
  •  感情败类
    2020-12-08 05:37

    To manage the height of the footer, you can use the following:

    date: '`r paste("Date:",Sys.Date())`'
    output:
      pdf_document: 
        latex_engine: xelatex
    header-includes:
          - \setlength{\footskip}{-50pt} # set the footer size
    

    Keep Coding!

提交回复
热议问题