如何在Rmd中使用Latex'\newcommand?

Chr*_*oph 5 latex r-markdown

我想做以下工作

---
title: "Untitled"
author: "SQC"
date: "21 September 2018"
output: html_document
---

\newcommand{\short}{AreallylongwordIhavetotypefrequently}

# My Test
I would like to write \short which does not work, $\short$ however is close... 
Snippets do not work in Rmd plain text (= Rstudio's "Shift", see link below).
Run Code Online (Sandbox Code Playgroud)

但我找不到解决方案.如果周围有什么东西会很棒!以下链接很有帮助,但没有提出解决方案:pandoc doc,Rmd公式中的\newcommandRStudio片段.

Ral*_*ner 5

如何使用R代替:

---
title: "Untitled"
author: "SQC"
date: "21 September 2018"
output: html_document
---

```{r, include = FALSE}
short <- "AreallylongwordIhavetotypefrequently"
```

# My Test
I would like to write `r short` instead ...
Run Code Online (Sandbox Code Playgroud)