Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdBook doesn't support mathcal symbols #2284

Open
HouJP opened this issue Jan 5, 2024 · 3 comments · May be fixed by #2285
Open

mdBook doesn't support mathcal symbols #2284

HouJP opened this issue Jan 5, 2024 · 3 comments · May be fixed by #2285
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@HouJP
Copy link

HouJP commented Jan 5, 2024

Problem

mdBook cannot render mathcal symbols correctly, e.g., \mathcal{X}.

Steps

Type the following line in a .md file.

For example, \\( \mathcal{X} \\).

Then, run mdbook serve and observe the output.

Possible Solution(s)

No response

Notes

No response

Version

No response

@HouJP HouJP added the C-bug Category: A bug, incorrect or unintended behavior label Jan 5, 2024
@HouJP
Copy link
Author

HouJP commented Jan 5, 2024

Interesting, I found the solution. Hope it helps others.

@HouJP HouJP closed this as completed Jan 5, 2024
@HouJP
Copy link
Author

HouJP commented Jan 5, 2024

It seems that it would be better to update the website configuration to switch to the CommonHTML or SVG output instead of HTML-CSS output to fix this issue globally?

@HouJP HouJP reopened this Jan 5, 2024
@HouJP
Copy link
Author

HouJP commented Jan 5, 2024

Here is the solution to update the js to the CommonHTML or SVG output.

A general idea to fix this issue is to introduce a HtmlConfig field named mathjax_config to support setting different configuration files used by MathJax, and set the default value of this field to TeX-AMS-MML_HTMLorMML to be consistent with the previous releases. WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: A bug, incorrect or unintended behavior
Projects
None yet
1 participant