I'm trying to provide custom labels to figures and tables on bookdown but I haven't managed to do so.
I tried to change the language according to the book (Internationalization section) on the default book when opening a new project on Rstudio and selecting a bookdown project.
I only added the label sections below to the _bookdown.yml file present
language: label: fig: function(i) paste("Figures ", i) tab: function(i) paste("Tables ", i)
language: label: fig: !expr function(i) paste("Figures ", i) tab: !expr function(i) paste("Tables ", i)
language: label: fig: "Figures " tab: "Tables "
I am misunderstanding something? Or this is a bug?
I found an issue related to this: [FR] Add prefixes to cross-references · Issue #1166 · rstudio/bookdown · GitHub (Which doesn't mention the internationalization help page)
Additionally, would the function work to solve this question html - How to create a R markdown/bookdown cross reference to a table that includes both text and the automatically generated table number? - Stack Overflow ?
I'm curious if the function works as to replace the text used for labeling or it is just appended.
Many thanks for such a useful package
PS: I'm using bookdown 0.24 on R 4.1.2 (Ubuntu 20.04)