Replace the Fraktur font in MathJaxHTML

HTML-Programmierer
Guest
 Replace the Fraktur font in MathJax

Post by Guest »

Ich möchte die Schriftart ändern, die vom Befehl \mathfrak im Mathematikmodus verwendet wird (mithilfe der MathJax-Erweiterung)
Bisher Ich habe versucht herauszufinden und zu verstehen, wie ich die Schriftart in den Quelldateien von MathJax direkt ändern kann (siehe den Link unten)

https://github.com/mathjax/MathJax-src/ ... gular.woff

Allerdings, ich konnte keine brauchbaren Schlussfolgerungen ziehen.
Ich habe mehrere Dinge ausprobiert (mit Hilfe von ChatGPT), aber nichts davon hat funktioniert. Irgendwann stieß ich auf diese Fehlermeldung, obwohl ich mir vorstellen kann, dass sie nicht viel zum Verständnis des Problems beiträgt:

Code: Select all

File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/TeX/font-mathjax.js
Wäre es jedoch möglich, Lösungen vorzuschlagen, die es mir ermöglichen, die vom Befehl \mathfrak im Mathematikmodus gerenderte Schriftart zu ändern?
Hier ist eine Zusammenfassung meines Ziels im folgenden Snippet

Code: Select all








* {
font-family: 'LMRoman10';
}
kbd {
background-color: #DDDDDD;
font-family: monospace;
font-weight: 200;
color: black;
padding: 2px 4px;
text-align: center;
border-radius: 2px;
}


MathJax.Hub.Config({
"HTML-CSS": {
preferredFont: "TeX",
availableFonts: ["STIX", "TeX"],
linebreaks: { automatic: true },
EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50)
},
tex2jax: {
inlineMath: [["$", "$"], ["\\(", "\\)"]],
displayMath: [["$$", "$$"], ["\\[", "\\]"]],
processEscapes: true,
ignoreClass: "tex2jax_ignore|dno"
},
TeX: {
extensions: ["begingroup.js"],
noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } },
Macros: { href: "{}" },
},
messageStyle: "none"
});





Customizing \mathfrak in MathJax

The normal and default result
By default, the font used by the \mathfrak command looks like this

$\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ~~abcdefghijklmnopqrstuvwxyz~~0123456789}$

The expected result
However, I want to change the font for \mathfrak to this one

ABCDEFGHIJKLMNOPQRSTUVWXYZ  abcdefghijklmnopqrstuvwxyz  0123456789

Example: Writing a mathematical expression
For example, I want to write this
\[z = \mathfrak{Re}(z) + i\mathfrak{Im}(z)\]
Where $\mathfrak{Re}$ and $\mathfrak{Im}$ should render to something like this Re Im


Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post