Hi there, I am specifying figure titles/captions in a bookdown book using the chunk option fig.cap = "Example title"
. However, it doesn't seem to be working.
See, for example, the figure titles in this chapter and .Rmd
file: little-kids-big-trips/03aa-abrams.Rmd at main · jrosen48/little-kids-big-trips · GitHub
Here's the rendered chapter: Abrams Creek | Trails
Thanks for any advice/tips!
cderv
November 23, 2021, 11:38am
2
I believe this is because you set fig_caption
to FALSE for the output
bookdown::gitbook:
fontfamily: gill
fig_caption: false
css: style.css
config:
toc:
collapse: section
before: |
<li><a href="./">Little Kids, Big Adventures</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
download: ["pdf", "epub"]
fig_height: 5.3
So caption are not added but the content of fig.cap
is used for title and alt text
1 Like
oye, thanks very much, that did the trick.
system
Closed
November 30, 2021, 1:21pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.