1

I would like to get Inhalt instead of Contents in the lower left corner of a slide presentation.

I tried

---
title: "Untitled"
author: "Erich Neuwirth"
date: "2022-09-28"
output:
  slidy_presentation:
    incremental: yes
    pandoc_args: [
      "--variable=lang:de"
    ]
---

## R Markdown
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

## Slide with Bullets

- Bullet 1
- Bullet 2
- Bullet 3

but this did not work.

Erich Neuwirth
  • 943
  • 7
  • 13
  • You just want to change the `Contents` to `Inhalts` and everything else would be in English?? – shafee Sep 30 '22 at 08:59
  • 1
    For my German slidy presentations thats the only English text visible all the time. Of course, bein able to change all slidy supplied texts to German would be better. – Erich Neuwirth Sep 30 '22 at 23:26
  • Well `Contents` could be changing to `Inhalt` using javascript actually. But I am not sure about other text if there's any. – shafee Oct 01 '22 at 10:07

2 Answers2

0

The lower left Contents could be changed to Inhalts using javascript code (sort of Brute-force way)

presentation.Rmd

---
title: "Untitled"
author: "Erich Neuwirth"
date: "2022-09-28"
output:
  slidy_presentation:
    incremental: yes
    includes:
      after_body: content-change.html
---

## R Markdown

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

## Slide with Bullets

- Bullet 1
- Bullet 2
- Bullet 3

content-change.html

<script>
  window.onload = function(){
    var content = document.querySelectorAll(".toolbar a")[1];
    content.innerText = "Inhalts";
};
</script>
shafee
  • 15,566
  • 3
  • 19
  • 47
0

With this yaml head

---
title: "COVID-19 <br> Mathematische<br> und <br> statistische Analysen"
author: "Erich Neuwirth"
date: "29. September 2022<br><br><br><br><br>Informatiktag 2022"
output:
  slidy_presentation:
    incremental: yes
    includes:
      after_body: content-change.html    
lang: de
---

everything works file.

lang: de changes titles and similarar things to German. It just does not replace the Content link in the lower left corner.

Erich Neuwirth
  • 943
  • 7
  • 13
  • If my answer solves your problem and helps you, would you mark it as accepted and upvote it? : ) – shafee Oct 12 '22 at 17:08