R Markdown 文档标题中的希腊字母 [英] Greek letter in title of R Markdown document

查看:58
本文介绍了R Markdown 文档标题中的希腊字母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

R markdown 文档的标题中可以包含希腊字母吗?

Is it possible to include a Greek letter in the title of R markdown document?

我试过了:

---
title: "α-Amylase"
author: "author"
date: "8 March 2017"
output: 
  pdf_document:
  keep_tex: true
toc: yes
toc_depth: 6
---

还有这个:

---
title: "$\alpha$-Amylase"
author: "author"
date: "8 March 2017"
output: 
  pdf_document:
  keep_tex: true
toc: yes
toc_depth: 6
---

推荐答案

这应该可以工作,使用 html 它会给出以下输出:

This should work, with html it gives the following output:

---
title: \(\alpha\)-Amylase
author: "author"
date: "8 March 2017"
output: html_document
toc: yes
toc_depth: 6
---

这篇关于R Markdown 文档标题中的希腊字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆