Greek letter in title of R Markdown document

本小妞迷上赌 提交于 2019-12-07 09:53:40

问题


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

I tried this:

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

And this:

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

回答1:


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
---



来源:https://stackoverflow.com/questions/42680619/greek-letter-in-title-of-r-markdown-document

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!