繁体   English   中英

bookdown 到 html_document2 中的数字列表

[英]List of figures in bookdown to html_document2

是否有可能在我的 Rmd 文档中包含数字列表? 现在我的 yaml-header 看起来像这样,但我不知道如何包含数字列表。 \figureslift似乎不起作用。

---
title: ""
author: ""
output:
  bookdown::html_document2:
    #css: styles.css
    fig_caption: yes
    theme: flatly
    toc: yes
    toc_depth: 1
bibliography: lib.bib
link-citations: yes
figurelist: yes
---

在正文文件中,我考虑过这样的事情来生成一个数字列表。

{r figure1, fig.cap="Sine Plot", fig.align='center'}
x = seq(1,10, by = 0.1)
y = sin(x)
plot(x, y, main = "title")

见图@ref(fig:figure1)

\数字列表

原则上,您可以在 YAML header 中添加lof: yes 但是,根据pandoc 手册,这些参数仅支持 LaTeX 和 ConTeXt 后端。 因此,这适用于使用 LaTeX 的bookdown::pdf_document2 ,但不适用于bookdown::html_docuemnt2

pandoc 的问题跟踪器中有一个请求,以添加 LoF/LoT/... 对其他后端的支持。 然而,似乎没有人接受这个(相当复杂的)任务。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM