ulyngs / oxforddown

Template for writing an Oxford University thesis in R Markdown; uses the OxThesis LaTeX template and was inspired by thesisdown.
https://ulyngs.github.io/oxforddown/
MIT License
220 stars 80 forks source link

Switching between different languages #56

Closed maltehueckstaedt closed 2 years ago

maltehueckstaedt commented 2 years ago

Hi,

Is there a way to switch between English and German in different chapters? My main concern is that table and figure labels are changed accordingly.

I would be very grateful for any tips :)

Thank you very much, Malte

maltehueckstaedt commented 2 years ago

I think I found the answer myself: It was sufficient for me to insert \selectlanguage{british} under the YAML :)

Dilan-Manosalvas commented 2 years ago

Hi, Where exactly do I write the code for YAML?

maltehueckstaedt commented 2 years ago

Hi @Dilan-Manosalvas,

usually you write the YAML at the beginning of your R markdown file. E.g. like this:

---
output:
  bookdown::pdf_document2:
    template: templates/brief_template.tex
    citation_package: biblatex
    latex_engine: xelatex
  bookdown::html_document2: default
  bookdown::word_document2: default
documentclass: book'
#bibliography: [bibliography/references.bib, bibliography/additional-references.bib]
---
\selectlanguage{british}