【问题标题】:How to specify a customized paper size in r markdown如何在 r markdown 中指定自定义的纸张尺寸
【发布时间】:2019-02-05 00:09:14
【问题描述】:

我正在使用 R Markdown 制作具有特定高度和长度测量值的小册子。有没有办法指定 R Markdown 以 5.5"x8.5" 度量生成文章。

我看到有关制作 A4 尺寸 pdf here 的问题,但这无济于事,因为我的衡量标准非常具体。

【问题讨论】:

    标签: r latex r-markdown knitr


    【解决方案1】:

    使用 YAML 中的几何选项(它成为 LaTeX 中几何包的选项)。例如:

    ---
    title: "Title"
    author: "Me"
    geometry: paperheight=8.5in,paperwidth=5.5in,margin=1in
    output:
        pdf_document
    ---
    
    ```{r setup, include=FALSE}
    knitr::opts_chunk$set(echo = TRUE)
    ```
    
    ## R Markdown
    
    This is an R Markdown document. Markdown is a simple formatting
    syntax for authoring HTML, PDF, and MS Word documents. For more
    details on using R Markdown see <http://rmarkdown.rstudio.com>.
    

    【讨论】:

      猜你喜欢
      • 2012-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-17
      • 2012-11-13
      • 1970-01-01
      相关资源
      最近更新 更多