rstudio / bookdown

Authoring Books and Technical Documents with R Markdown
https://pkgs.rstudio.com/bookdown/
GNU General Public License v3.0
3.76k stars 1.27k forks source link

How to write bold but non-Italic Geek letters in bookdown html #1465

Open wangzhen89 opened 5 months ago

wangzhen89 commented 5 months ago

Hi guys,

How to write bold but non-Italic Greek letters in bookdown html? One solution may be the commond \symrm, but it doesn't work for me, as it failed to render .

I've checked here, there is \symrm in the list. So I can't figure out why.

Thanks!

cderv commented 5 months ago

I've checked here, there is \symrm in the list. So I can't figure out why.

I believe bookdown is using mathjax 2.7 by default. and the command is not there: https://docs.mathjax.org/en/v2.7-latest/tex.html

Unfortunately using a different version is not well supported in bookdown without some bigger adjustment

So I don't have easy solution around this, except if you can define a custom command to reproduce the symrm maybe

wangzhen89 commented 5 months ago

I got it, thanks!

wangzhen89 commented 5 months ago

Hi, Dear cderv, maybe I have a solution from here

Is there any way to set to the URL of the MathJax to https://cdn.jsdelivr.net/npm/mathjax@2.7.9/unpacked/MathJax.js?config=TeX-AMS_HTML?

Thanks!

cderv commented 5 months ago

Unfortunately not in bookdown right now. See

that I linked above

wangzhen89 commented 5 months ago

Thanks!