Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Greek letter in title of R Markdown document

Tags:

r

r-markdown

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
---
like image 561
JAQuent Avatar asked Mar 08 '17 19:03

JAQuent


People also ask

How do you type Greek letters in R Markdown?

To make a Greek letter in R, You just use \ and then the name of the letter. If you want a subscript, like β1 , you use $\beta_1$ .

Can you use Greek letters in R?

| R Code Fragments. R allows users great flexibility in creating and formatting plots. Greek letters can be included in titles and labels using the expression command.


1 Answers

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

enter image description here

like image 69
Sandipan Dey Avatar answered Oct 24 '22 07:10

Sandipan Dey