Closed Truong-An-Nguyen closed 2 years ago
Here is how I managed to add a second abstract (French) by editing the file _abstract.Rmd
.
It would be awesome to have an easier way :)
Here is how I managed to add a second abstract (French) by editing the file
_abstract.Rmd
.It would be awesome to have an easier way :)
Thanks @bttomio, it works with a small correction in the index.Rmd. I added encoding = "UTF-8" to read the French accent
abstract: |
`r paste(readLines("front-and-back-matter/_abstract.Rmd",encoding = "UTF-8"), collapse = '\n ')`
Thanks, @Truong-An-Nguyen!
Just added an easy way to do this in 1bb3bf678c9be3be9e8253685a54752d4f88b989
In index.Rmd you can now just go like
abstract: |
`r paste(readLines("front-and-back-matter/_abstract.Rmd"), collapse = "\n ")`
abstract-second-heading: "Resumé"
abstract-second: |
`r paste(readLines("front-and-back-matter/_abstract_french.Rmd", encoding = "UTF-8"), collapse = "\n ")`
Hello,
Is there any options to add second abstract in different language?
I tried to update the template.tex as below, but it still render the title as "Abstract", not "Résumé"
Thanks