yihui / printr

Some (magical) printing methods for knitr
https://yihui.org/printr/
118 stars 24 forks source link

Positioning the TOC #4

Closed oscardelama closed 9 years ago

oscardelama commented 9 years ago

It would be great if it were possible to select were the TOC will appear.

I like to show the TOC after a brief introduction, the same style used by wikipedia. That way, the items in the TOC makes more sense to the primer.

This post is about an enhancement, but I don't know how to classify it that way.

yihui commented 9 years ago

I think this should be filed to the rmarkdown repo: https://github.com/rstudio/rmarkdown And actually you can write your own HTML template: http://rmarkdown.rstudio.com/html_document_format.html#advanced-customization