Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zenrabbit
Last active October 30, 2019 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zenrabbit/e873240733977ef3f491d367e0925333 to your computer and use it in GitHub Desktop.
Save zenrabbit/e873240733977ef3f491d367e0925333 to your computer and use it in GitHub Desktop.
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