Chapters 16 & 17: templates and new formats #10
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Chapters complete (I hope). I have looked through your edits to my previous PRs and tried to reduce the number of changes you will need to make, but I am sure there are still some stylistic issues you will want to change.
I really wanted to write a lot more about creating custom pandoc templates, but feel this is a complex topic and requires an understanding of LaTeX and HTML. So I have included a single example to at least show how we can use pandoc variables in a template. This is a subject I would like to expand in the "Mastering R Markdown" book though, as I think it is really powerful.
I have also made a few example templates and contained them within a repository: https://github.com/mikey-harper/example-rmd-templates . I wasn't sure whether you wanted me to keep them as part of the book, but if you do like the idea I will expand the description and include a README.md in the repository.
Let me know if there are other things I can help out with on the book for now :) I was going to read through it all and pick out any typos and see if I had any other suggestions.