小编Sea*_*use的帖子

我可以将正文与页边注释对齐吗?

我正在使用 tufte R 包创建一个带有页边注释的 html 文档。我的一些页边注中的数字相当高。例如:


    ---
    title: Big sidenote
    output:
      tufte::tufte_html: default
    ---

    ```{r setup, include=FALSE}
    library(tufte)
    # invalidate cache when the tufte version changes
    knitr::opts_chunk$set(tidy = FALSE, cache.extra = packageVersion('tufte'))
    options(htmltools.dir.version = FALSE)
    ```


    ```{r fig.margin = TRUE, fig.cap="Fig1. My margin figure is kind of tall.", echo=FALSE}

    plot(mtcars)

    ```

    Here is paragraph 1. It's pretty short and it's associated with Fig 1.

    ```{r fig.margin = TRUE, fig.cap="Fig 2. Related to the second paragraph.", echo=FALSE}

    plot(subset(mtcars, cyl==6))

    ```

    I'd …
Run Code Online (Sandbox Code Playgroud)

css latex r r-markdown tufte

5
推荐指数
1
解决办法
906
查看次数

标签 统计

css ×1

latex ×1

r ×1

r-markdown ×1

tufte ×1