Skip to content

How to render greek letters #495

Answered by davidgohel
emstruong asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the delay

You can render greek letters with the function as_equation(). It's a function made for math equation and greek symbols. It maybe possible with your method by using a specific font but I don't know which one.

---
title: "Test"
format: pdf
pdf-engine: xelatex
---

```{r}
library(flextable)
```

```{r}
data.frame(b = rnorm(2,2)) |>
  flextable() |> 
  add_header_row(values = as_paragraph(as_equation("\U1D6FD"))) |> 
  add_header_row(values = as_paragraph(as_equation("\\beta")))

```

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davidgohel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #468 on January 10, 2023 23:20.