How to avoid blank space for title in R markdown v2

孤街醉人 提交于 2019-12-06 06:07:39

问题


I would not like to have blank space in my pdf output, that surely stands for no title method in R markdown while knitting pdf.

I would like not to have title and have text starting from the begging of the page. Can anyone can tell me how to do that?

My code, so far, looks like this:

---
output: 
   pdf_document:
      highlight: pygments
      toc: false
      number_sections: true
---
text

Thanks for any advice !


回答1:


For this level of customization you'll want to change the TeX template Pandoc uses:

  1. Copy the default TeX template used by rmarkdown (you can find the path by running system.file("rmd/latex/default.tex", package="rmarkdown"))
  2. Edit the file to remove the title, adjust margins, etc. and save as e.g. notitle.tex
  3. Add template: notitle.tex to the settings to pdf_document.


来源:https://stackoverflow.com/questions/25513671/how-to-avoid-blank-space-for-title-in-r-markdown-v2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!