-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document what cover-image
actually does
#634
Comments
It is for EPUB only. Please see Pandoc's manual (as I often suggest): https://pandoc.org/MANUAL.html Whenever you see a top-level field in YAML that you don't understand, the first thing to do is check Pandoc's documentation. If you cannot find it there, you may come back here to ask. Thanks! |
In the bookdown book you refer to
When used as a top level option in the Pandoc manual, this option is named Further, you state that
So it seems |
It is named For your second question, the answer is yes. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I've tried adding
images/cover.png
to my repo andcover-image: images/cover.png
to theindex.Rmd
YAML header. When I build the book, nothing is included. Following the advice on the RStudio Discourse, I've added an R chunk to include this image only when building HTML output. Unfortunately, this just generates a broken image link. I was also surprised to learn thatcover-image
does nothing for PDF output. I searched forcover-image
in this repo to see if I could find the code that handles this option but nothing turned up.So, would you consider adding a bit more detail to the Bookdown book (or some other canonical source) on what the
cover-image
option actually does, and how to use it to insert and serve a cover image for an HTML book published someplace?The text was updated successfully, but these errors were encountered: