首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不移除目录

不移除目录
EN

Stack Overflow用户
提问于 2020-06-03 19:36:45
回答 1查看 279关注 0票数 0

我似乎不能从我的RMarkdown pdf文档中删除目录。我尝试过许多不同的东西,例如。

false

  • using

  • toc: no转换为与getNamespaceExports("rticles").

  • removing csl: elsevier-harvard.csl

不同的base_format: rticles::ieee_article工件

似乎什么都没有用,每次我编辑目录时都会出现--我缺少了什么?

减价:

代码语言:javascript
复制
---
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} 


---
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-06-04 07:21:37

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

代码语言:javascript
复制
output:
    bookdown::pdf_document2:
      number_sections: no
      toc: no
      tables: true
    base_format: rticles::ieee_article

那么TOC就应该消失。我希望base_format的论点能得到考虑。请试着报告。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62181315

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档