r - How to change table of content header in knitr? -


i using following options produce pdf document knitr:

--- title: "test" author: "paulo miramor" date: "13-07-2015" output: pdf_document toc: yes --- 

i change header of table of contents (which "contents"), since producing document in portuguese. there way customize it?

thanks @molx , @chris in comments find solution.

solution 1

add \renewcommand{\contentsname}{Índice} document .rmd header is:

--- title: "test" author: "paulo miramor" date: "13-07-2015" output: pdf_document header-includes:    - \renewcommand{\contentsname}{whatever} toc: yes --- 

with solution header whatever put inside \contentsname argument.

solution 2

add lang: portuguese document .rmd header is:

--- title: "test" author: "paulo miramor" date: "13-07-2015" output: pdf_document lang: portuguese toc: yes --- 

using solution header translation of "contents" portuguese. should work if tex installation supports language.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -