其他语言for Table and Figure in office

r9f1avp5  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(40)

有没有一种方法可以在officedown::rocx_document中使用德语单词来表示“Table”和“Figure”?就像在YAML lang: de中从rmarkdown到普通的word_document一样?这在这里不起作用。
这是我的YAML:

---
date: "`r Sys.Date()`"
author: "Your Name"
title: "officedown template"
output: 
  officedown::rdocx_document:
    mapstyles:
      Normal: ['First Paragraph']
---

字符串

t8e9dugd

t8e9dugd1#

不知道lang选项,但可以在YAML中设置用于图和表标题的prefix。(注意:还有几个选项。参见?officedown::rdocx_document

---
date: "`r Sys.Date()`"
author: "Your Name"
title: "officedown template"
output: 
  officedown::rdocx_document:
    tables:
      caption:
        pre: 'Tabelle'
    plots:
      caption:
        pre: 'Abbildung'
      topcaption: true
---

```{r setup, include=FALSE}
library(officedown)
library(ggplot2)

Figure

ggplot(economics, aes(date, unemploy / pop)) + 
  geom_line() + 
  theme_minimal()

Table

head(economics)
字符串

![](https://i.stack.imgur.com/mFQ0p.png)
的数据

相关问题