I set the language to French Canadian and I enabled the List of Figures by setting these options in the yaml:
lang: fr-CA
lof: true
The list if figures looks like this:
Table des figures
I want it to be this instead:
Liste des figures
How can I change it? I tried adding this to header-includes, but it didn't work:
\addto\captionsfrench{
\renewcommand{\contentsname}
{Liste des figures}
}
cderv
June 2, 2022, 9:39am
2
Amarakon:
\addto\captionsfrench
I don't know about babel specificity but without it, you should be able to change it using
\renewcommand\listfigurename{Liste des figures}
---
title: Document
output: rmarkdown::pdf_document
lof: true
header-includes: |
\renewcommand\listfigurename{Liste des figures}
---
# Figures
```{r}
#| fig-cap: Hello
plot(mtcars)
```
I think
contentsname
=> toc
listfigurename
=> lof
listtablename
=> lot
Hope it helps
I tried this:
---
title: Document
lang: fr-CA
output: rmarkdown::pdf_document
lof: true
header-includes: |
\renewcommand\listfigurename{Liste des figures}
---
# Figures
```{r}
#| fig-cap: Hello
plot(mtcars)
```
But \renewcommand\listfigurename{Liste des figures}
only works if I don't set the lang
option. If I remove lang: fr-CA
, it will show "Liste des figures". But if I keep that option, it will still show "Table des figures". How can I make it still show "Liste des figures" with the French Canadian language?
system
Closed
June 23, 2022, 1:43pm
4
This topic was automatically closed 21 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.