Strange-looking font in pdf generated by Rstudio

Hello! I met a strange-looking mathbb font. It is in a pdf generated by R markdown via pandoc.

Specifically, it shows like this graph:
image

instead of the common one \mathbb{R}

I did nothing to the default template of pandoc. It seems the font exists because of default pandoc.

Besides, I have included necessary font package amssymb.

another similar font problem

for mathcal, I want
image
but they are
image
(eucal style)by default, a very frustrating question as they are different with most latex outputs.

What is the problem?

Can you give us a reprex ? I think we need all the YAML , a bit of token text and the code that will show the problems.

Are you using {tinytex} or a full MixTex or Texalive installation?

2 Likes

Ah, here it is. @jrkrideau

---
title: title
author: 
  - Noone

output: 
  bookdown::pdf_document2: 
    keep_tex: yes
    latex_engine: xelatex 
    fig_caption: yes
    number_sections: yes
    toc: yes
    toc_depth: 3
---

This is a $\mathbb{R}$. 

This is mathcal : $\mathcal{ABC}$


when knitted it looked like what I have mentioned.

Besides, I use a full Texlive installation. And I use no pandoc templates.

I wonder if this can show you my problem.

I think I got it. The symbol you want is in the LaTeX package (amsmath} so you need to load it.

I suspect this is very inelegant but try

---
title: The Case of the mysterious *R*
date: today
author: 
  - Noone

output: 
  bookdown::pdf_document2: 
    keep_tex: yes
    latex_engine: xelatex 
    fig_caption: yes
    number_sections: yes
    toc: yes
    toc_depth: 3
header-includes:
    \usepackage{amsmath}
---

This is a $\mathbb{R}$.