rstudio / rmarkdown-book

R Markdown: The Definitive Guide (published by Chapman & Hall/CRC in July 2018)
https://bookdown.org/yihui/rmarkdown
Other
781 stars 518 forks source link

Update 11-pkgdown.Rmd #15

Closed asimumba closed 6 years ago

asimumba commented 6 years ago

Minesweeper... When you do and write good works. Others should carry the load of cleaning up the tiny pieces left behind.

yihui commented 6 years ago

Actually I do have one last major thing that I need help with: add \index{} entries. Are you interested in that? This is not super important to me, but some readers really love the index at the end of the book.

asimumba commented 6 years ago

@yihui I can help with that. Point me to it and I can start working on it later today.

yihui commented 6 years ago

Basically you just add \index{} after the keywords. Here are some examples in the bookdown book: https://github.com/search?utf8=%E2%9C%93&q=%22%5Cindex%7B%22+repo%3Arstudio%2Fbookdown+extension%3ARmd&type=Code&ref=advsearch&l=&l=

The last page of the PDF shows the output: https://bookdown.org/yihui/bookdown/bookdown.pdf

It is up to you which words/phrases are keywords. As I said, I don't really care about the index.

One technical caution is that LaTeX special characters have to be escaped, e.g., the underscore in \index{knitr::include\_graphics()}.

I'm not sure how fast you will be, but I'm still revising Chapter 9, so please don't work on this chapter yet. The manuscript should be finalized tomorrow.

Thanks a lot!

asimumba commented 6 years ago

Thanks for the heads up. On it!

yihui commented 6 years ago

The manuscript should be finalized now. Please feel free to add index entries starting from 01-installation.Rmd (you can skip the preface).