[英]slide presentation change language of top title
I would like to get Inhalt
instead of Contents
in the lower left corner of a slide presentation.我想在幻灯片演示文稿的左下角获得Inhalt
而不是Contents
。
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.但这没有用。
The lower left Contents
could be changed to Inhalts
using javascript code (sort of Brute-force way)可以使用 javascript 代码将左下角的Contents
更改为Inhalts
(某种蛮力方式)
presentation.Rmd介绍.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内容更改.html
<script>
window.onload = function(){
var content = document.querySelectorAll(".toolbar a")[1];
content.innerText = "Inhalts";
};
</script>
With this yaml head用这个yaml头
---
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. lang: de
将标题和类似的东西更改为德语。 It just does not replace the Content
link in the lower left corner.它只是不替换左下角的Content
链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.