I am trying to include a greek symbol in my block_caption() in the officer R package (writing to docx), but the greek symbol is not formatting.
I have tried:
--
title: 'Test'
output:
officedown::rdocx_document:
html_document:
df_print: paged
includeline-num: true
---
# Test
```{r test, echo=FALSE, fig.height=6, fig.width=6}
#from https://stackoverflow.com/questions/54915628/restart-figure-numbering-for-appendix-supplementary-material-in-bookdown
officer::block_caption("\\sigma",
style = "Figure",
autonum = officer::run_autonum(seq_id = 'suppfig',
bkm = 'test',
pre_label = "Supplementary Figure ",
start_at=NULL))
```
However, when I knit this to Word, the caption just outputs at "\sigma". Can anyone provide the correct solution please as I can't find one anywhere? Thanks!
One option to add a sigma symbol would be to use it's UTF-8 code =
\u003c.