'R latex2exp: large brackets and some latex symbols displayed as empty squares on M1 MBP

I have the following the issues with the latex2exp package in R. Thanks in advance for any helpful discussion.

The issue is that large brackets and some latex symbols (for examples \nabla, \cdot) are displayed as empty squares. Examples are attached as following.

latex2exp::latex2exp_examples(cex=0.9)

Output


Session Info:

R version 4.1.3 (2022-03-10)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.3.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRlapack.dylib

locale:
[2] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[2] stats     graphics  grDevices utils     datasets  methods  
[7] base     

other attached packages:
[2] ggplot2_3.3.5   latex2exp_0.9.3

loaded via a namespace (and not attached):
 [2] magrittr_2.0.3   tidyselect_1.1.2 munsell_0.5.0   
 [4] colorspace_2.0-3 R6_2.5.1         rlang_1.0.2     
 [7] fansi_1.0.3      stringr_1.4.0    dplyr_1.0.8     
[10] tools_4.1.3      grid_4.1.3       gtable_0.3.0    
[13] utf8_1.2.2       DBI_1.1.2        cli_3.3.0       
[16] withr_2.5.0      ellipsis_0.3.2   assertthat_0.2.1
[19] tibble_3.1.6     lifecycle_1.0.1  crayon_1.5.1    
[22] purrr_0.3.4      vctrs_0.4.1      glue_1.6.2      
[25] stringi_1.7.6    compiler_4.1.3   pillar_1.7.0    
[28] generics_0.1.2   scales_1.2.0     pkgconfig_2.0.3 

I followed Hernan's answer to a related question and fixed the issues with greek letters. What remain problematic are large brackets and /nabla etc. I couldn't found what kind of ttf files I need to get.

Thank you very much for any help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source