文章和rmarkdown不会删除目录

问题描述 投票:0回答:1

我似乎无法从我的RMarkdown pdf文档中删除目录。我尝试了许多不同的方法,例如。

  • toc: no更改为false
  • 使用与base_format: rticles::ieee_article不同的getNamespaceExports("rticles")武器。
  • 正在删除csl: elsevier-harvard.csl

似乎没有任何作用,每次编译目录时都会出现-我缺少什么?

降价:

---
title: some title
author:
  - name: some name
    email: some email
    affiliation: some department
    footnote: some footnote
  - name: some name
    email: some email
    affiliation: some department
    footnote: 2
footnote:
  - code: 1
    text: "Corresponding Author"
  - code: 2
    text: "Corresponding Author"
abstract: |
 some abstract here

journal: "An awesome journal"
date: "`r Sys.Date()`"
bibliography: mybibfile.bib
#linenumbers: true
#numbersections: true
csl: elsevier-harvard.csl
output:
    bookdown::pdf_document2:
    base_format: rticles::ieee_article
    number_sections: no
    toc: no
    tables: true
header-includes:
  - \usepackage{floatrow}
  - \floatplacement{figure}{H}
  - \usepackage{booktabs}
  - \usepackage{array} 


---
r latex r-markdown
1个回答
1
投票

尝试如下格式化YAML标头的输出部分:

output:
    bookdown::pdf_document2:
      number_sections: no
      toc: no
      tables: true
    base_format: rticles::ieee_article

然后目录将消失。我希望将base_format参数考虑在内。请尝试报告。

© www.soinside.com 2019 - 2024. All rights reserved.