Skip to content

Instantly share code, notes, and snippets.

@cjlortie

cjlortie/rmd_YAML_PDF.txt

Last active Oct 30, 2019
Embed
What would you like to do?
R Markdown YAML for knit to PDF with table of content without word contents
---
title: ""
author: you
header-includes:
\renewcommand{\contentsname}{}
output:
pdf_document:
fig_caption: no
toc: TRUE
toc_depth: 3
---
# \renewcommand{\contentsname}{} insert preferred word inside {} instead of Contents or leave blank as desired
# toc: TRUE indexes headers but ensure you set depth to match you preferred font size/header style i.e. ### 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment