Back in March, I asked a question and got an answer to including coverpage in a pdf document rendered by R bookdown:
R bookdown - cover page and appendix
I tried the solution and came up with the following results:
using in index.rmd yaml:
output:
pdf_document:
includes:
before_body: frontpage.tex
number_sections: yes
toc: yes
toc_depth: 3
site: bookdown::bookdown_site
documentclass: book
classoption: letterpaper
The title still appeared before the coverpage AND the Chapter 'wording' in chapter titles (ie 'Chapter 1' before the actual words for chapter title) disappeared. And the section numbering in each chapter began with 0 etc.
If i take out the includes clause in the above- title and author come up as first page, followed by table of contents and all chapter headings and section numbering come out properly- but then of course no coverpage or copyright page.
frontpage.tex was like the following:
\frontmatter
\includegraphics {coverpage.png}
This edition first published August 2017 etc
How do I get coverpage ahead of title, copyrightpage after title and before table of contents, and have the chapter headings ie (the word chapter and number ahead of chapter title render in that order and properly.
R bookdown has done an amazing job in book layout and formatting so far but I can't seem to make these typical things which would be needed to work.
Thanks...
before_header.tex
file get included in the index.rmd yaml as per the original question? Would I get an informative error to let me know I needed to relocate thepreamble.tex
to another folder and reference it there? – Discompose