How to use MathJax Optentype fonts with XeLaTeX? The 2019 Stack Overflow Developer Survey...
"as much details as you can remember"
How to obtain a position of last non-zero element
Match Roman Numerals
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Why does the nucleus not repel itself?
writing variables above the numbers in tikz picture
I am an eight letter word. What am I?
Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?
Geography at the pixel level
A word that means fill it to the required quantity
Is it possible for absolutely everyone to attain enlightenment?
Falsification in Math vs Science
Why can't devices on different VLANs, but on the same subnet, communicate?
How do you keep chess fun when your opponent constantly beats you?
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
How to notate time signature switching consistently every measure
Does adding complexity mean a more secure cipher?
What information about me do stores get via my credit card?
Are spiders unable to hurt humans, especially very small spiders?
Relationship between Gromov-Witten and Taubes' Gromov invariant
Keeping a retro style to sci-fi spaceships?
Currents/voltages graph for an electrical circuit
Getting crown tickets for Statue of Liberty
How to use MathJax Optentype fonts with XeLaTeX?
The 2019 Stack Overflow Developer Survey Results Are InWhat math fonts are available that work in xelatex?Switching math fonts with unicode-mathHow to combine LaTeX fonts with system fonts in XeLaTeXIncomplete generation of Greek letters with Unicode and XeLaTeXSymbol sslash with XeLaTeX (and unicode-math)Bold italic math fonts with unicode-math (xelatex)Pencil symbol with xelatex (and unicode-math)Using multiple math fonts causes characters and spacing problems with delimitersXeLaTeX and Math Fonts from Main FontUse sans serif math operators with Roboto
I want to use MathJax opentype text and math fonts in my document. All the following fonts can be downloaded from this GitHub MathJax page.
MathJax_AMS-Regular.otf MathJax_SansSerif-Bold.otf
MathJax_Caligraphic-Bold.otf MathJax_SansSerif-Italic.otf
MathJax_Caligraphic-Regular.otf MathJax_SansSerif-Regular.otf
MathJax_Fraktur-Bold.otf MathJax_Script-Regular.otf
MathJax_Fraktur-Regular.otf MathJax_Size1-Regular.otf
MathJax_Main-Bold.otf MathJax_Size2-Regular.otf
MathJax_Main-Italic.otf MathJax_Size3-Regular.otf
MathJax_Main-Regular.otf MathJax_Size4-Regular.otf
MathJax_Math-BoldItalic.otf MathJax_Typewriter-Regular.otf
MathJax_Math-Italic.otf MathJax_WinChrome-Regular.otf
MathJax_Math-Regular.otf MathJax_WinIE6-Regular.otf
For text, I was able to get things working, but for math it is too tricky. I tried mathspec and unicode-math without success. I used XeLaTeX before with other math fonts successfully, but it doesn't work properly with this font. Some people went farther and succeeded in compiling the MathJax fonts even with pdfLaTeX and got awesome results. It will be fine for me to just make it work with XeLaTeX.
Here is my attempt with unsatisfying output:
documentclass[a4paper,12pt]{article}
usepackage{amsmath}
usepackage{mathspec}
setmainfont{MathJax_Main-Regular.otf}[
UprightFont = MathJax_Main-Regular,
ItalicFont = MathJax_Main-Italic,
BoldFont = MathJax_Main-Bold
]
setmathrm{MathJax_Main-Regular.otf} % for sin cos ln max ..
setmathsfont(Digits){MathJax_Main-Regular.otf}
setmathsfont(Latin,Greek){MathJax_Math-Italic.otf}
setboldmathrm{MathJax_Math-BoldItalic.otf}
usepackage{bm}
begin{document}
section{Mathjax fonts}
subsection{Main fonts}
Roman: `The quick brown fox jumps over the lazy dog.' 0123456789\
Italic: textit{`The quick brown fox jumps over the lazy dog.' 0123456789}\
Bold: textbf{`The quick brown fox jumps over the lazy dog.' 0123456789}
subsection{Math}
Numbers: $123,456.7890$\
Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
Calligraphic: $mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Accents: $hat f vec f ddot f dot f bar fcheck f tilde f acute f grave f breve f$\
Greek: $alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega$
$Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega$\
Operators: $costheta$, $ln x$, $a bmod n$, etc.\
Big operators:
[ f(x) = sum_{n = -infty}^infty c_{n}e^{jnx} ]
[ c_{n} = frac{1}{2}int_{-pi}^{pi}f(x)e^{-jnx},mathrm dx ]
%
Bold italic: $bm{abcdefghijklmnopqrstuvwxyz}$\
Bold rm: $mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Bold italic: $bm{alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega}$
end{document}

xetex unicode-math mathspec math-fonts
add a comment |
I want to use MathJax opentype text and math fonts in my document. All the following fonts can be downloaded from this GitHub MathJax page.
MathJax_AMS-Regular.otf MathJax_SansSerif-Bold.otf
MathJax_Caligraphic-Bold.otf MathJax_SansSerif-Italic.otf
MathJax_Caligraphic-Regular.otf MathJax_SansSerif-Regular.otf
MathJax_Fraktur-Bold.otf MathJax_Script-Regular.otf
MathJax_Fraktur-Regular.otf MathJax_Size1-Regular.otf
MathJax_Main-Bold.otf MathJax_Size2-Regular.otf
MathJax_Main-Italic.otf MathJax_Size3-Regular.otf
MathJax_Main-Regular.otf MathJax_Size4-Regular.otf
MathJax_Math-BoldItalic.otf MathJax_Typewriter-Regular.otf
MathJax_Math-Italic.otf MathJax_WinChrome-Regular.otf
MathJax_Math-Regular.otf MathJax_WinIE6-Regular.otf
For text, I was able to get things working, but for math it is too tricky. I tried mathspec and unicode-math without success. I used XeLaTeX before with other math fonts successfully, but it doesn't work properly with this font. Some people went farther and succeeded in compiling the MathJax fonts even with pdfLaTeX and got awesome results. It will be fine for me to just make it work with XeLaTeX.
Here is my attempt with unsatisfying output:
documentclass[a4paper,12pt]{article}
usepackage{amsmath}
usepackage{mathspec}
setmainfont{MathJax_Main-Regular.otf}[
UprightFont = MathJax_Main-Regular,
ItalicFont = MathJax_Main-Italic,
BoldFont = MathJax_Main-Bold
]
setmathrm{MathJax_Main-Regular.otf} % for sin cos ln max ..
setmathsfont(Digits){MathJax_Main-Regular.otf}
setmathsfont(Latin,Greek){MathJax_Math-Italic.otf}
setboldmathrm{MathJax_Math-BoldItalic.otf}
usepackage{bm}
begin{document}
section{Mathjax fonts}
subsection{Main fonts}
Roman: `The quick brown fox jumps over the lazy dog.' 0123456789\
Italic: textit{`The quick brown fox jumps over the lazy dog.' 0123456789}\
Bold: textbf{`The quick brown fox jumps over the lazy dog.' 0123456789}
subsection{Math}
Numbers: $123,456.7890$\
Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
Calligraphic: $mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Accents: $hat f vec f ddot f dot f bar fcheck f tilde f acute f grave f breve f$\
Greek: $alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega$
$Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega$\
Operators: $costheta$, $ln x$, $a bmod n$, etc.\
Big operators:
[ f(x) = sum_{n = -infty}^infty c_{n}e^{jnx} ]
[ c_{n} = frac{1}{2}int_{-pi}^{pi}f(x)e^{-jnx},mathrm dx ]
%
Bold italic: $bm{abcdefghijklmnopqrstuvwxyz}$\
Bold rm: $mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Bold italic: $bm{alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega}$
end{document}

xetex unicode-math mathspec math-fonts
add a comment |
I want to use MathJax opentype text and math fonts in my document. All the following fonts can be downloaded from this GitHub MathJax page.
MathJax_AMS-Regular.otf MathJax_SansSerif-Bold.otf
MathJax_Caligraphic-Bold.otf MathJax_SansSerif-Italic.otf
MathJax_Caligraphic-Regular.otf MathJax_SansSerif-Regular.otf
MathJax_Fraktur-Bold.otf MathJax_Script-Regular.otf
MathJax_Fraktur-Regular.otf MathJax_Size1-Regular.otf
MathJax_Main-Bold.otf MathJax_Size2-Regular.otf
MathJax_Main-Italic.otf MathJax_Size3-Regular.otf
MathJax_Main-Regular.otf MathJax_Size4-Regular.otf
MathJax_Math-BoldItalic.otf MathJax_Typewriter-Regular.otf
MathJax_Math-Italic.otf MathJax_WinChrome-Regular.otf
MathJax_Math-Regular.otf MathJax_WinIE6-Regular.otf
For text, I was able to get things working, but for math it is too tricky. I tried mathspec and unicode-math without success. I used XeLaTeX before with other math fonts successfully, but it doesn't work properly with this font. Some people went farther and succeeded in compiling the MathJax fonts even with pdfLaTeX and got awesome results. It will be fine for me to just make it work with XeLaTeX.
Here is my attempt with unsatisfying output:
documentclass[a4paper,12pt]{article}
usepackage{amsmath}
usepackage{mathspec}
setmainfont{MathJax_Main-Regular.otf}[
UprightFont = MathJax_Main-Regular,
ItalicFont = MathJax_Main-Italic,
BoldFont = MathJax_Main-Bold
]
setmathrm{MathJax_Main-Regular.otf} % for sin cos ln max ..
setmathsfont(Digits){MathJax_Main-Regular.otf}
setmathsfont(Latin,Greek){MathJax_Math-Italic.otf}
setboldmathrm{MathJax_Math-BoldItalic.otf}
usepackage{bm}
begin{document}
section{Mathjax fonts}
subsection{Main fonts}
Roman: `The quick brown fox jumps over the lazy dog.' 0123456789\
Italic: textit{`The quick brown fox jumps over the lazy dog.' 0123456789}\
Bold: textbf{`The quick brown fox jumps over the lazy dog.' 0123456789}
subsection{Math}
Numbers: $123,456.7890$\
Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
Calligraphic: $mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Accents: $hat f vec f ddot f dot f bar fcheck f tilde f acute f grave f breve f$\
Greek: $alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega$
$Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega$\
Operators: $costheta$, $ln x$, $a bmod n$, etc.\
Big operators:
[ f(x) = sum_{n = -infty}^infty c_{n}e^{jnx} ]
[ c_{n} = frac{1}{2}int_{-pi}^{pi}f(x)e^{-jnx},mathrm dx ]
%
Bold italic: $bm{abcdefghijklmnopqrstuvwxyz}$\
Bold rm: $mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Bold italic: $bm{alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega}$
end{document}

xetex unicode-math mathspec math-fonts
I want to use MathJax opentype text and math fonts in my document. All the following fonts can be downloaded from this GitHub MathJax page.
MathJax_AMS-Regular.otf MathJax_SansSerif-Bold.otf
MathJax_Caligraphic-Bold.otf MathJax_SansSerif-Italic.otf
MathJax_Caligraphic-Regular.otf MathJax_SansSerif-Regular.otf
MathJax_Fraktur-Bold.otf MathJax_Script-Regular.otf
MathJax_Fraktur-Regular.otf MathJax_Size1-Regular.otf
MathJax_Main-Bold.otf MathJax_Size2-Regular.otf
MathJax_Main-Italic.otf MathJax_Size3-Regular.otf
MathJax_Main-Regular.otf MathJax_Size4-Regular.otf
MathJax_Math-BoldItalic.otf MathJax_Typewriter-Regular.otf
MathJax_Math-Italic.otf MathJax_WinChrome-Regular.otf
MathJax_Math-Regular.otf MathJax_WinIE6-Regular.otf
For text, I was able to get things working, but for math it is too tricky. I tried mathspec and unicode-math without success. I used XeLaTeX before with other math fonts successfully, but it doesn't work properly with this font. Some people went farther and succeeded in compiling the MathJax fonts even with pdfLaTeX and got awesome results. It will be fine for me to just make it work with XeLaTeX.
Here is my attempt with unsatisfying output:
documentclass[a4paper,12pt]{article}
usepackage{amsmath}
usepackage{mathspec}
setmainfont{MathJax_Main-Regular.otf}[
UprightFont = MathJax_Main-Regular,
ItalicFont = MathJax_Main-Italic,
BoldFont = MathJax_Main-Bold
]
setmathrm{MathJax_Main-Regular.otf} % for sin cos ln max ..
setmathsfont(Digits){MathJax_Main-Regular.otf}
setmathsfont(Latin,Greek){MathJax_Math-Italic.otf}
setboldmathrm{MathJax_Math-BoldItalic.otf}
usepackage{bm}
begin{document}
section{Mathjax fonts}
subsection{Main fonts}
Roman: `The quick brown fox jumps over the lazy dog.' 0123456789\
Italic: textit{`The quick brown fox jumps over the lazy dog.' 0123456789}\
Bold: textbf{`The quick brown fox jumps over the lazy dog.' 0123456789}
subsection{Math}
Numbers: $123,456.7890$\
Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
Calligraphic: $mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Accents: $hat f vec f ddot f dot f bar fcheck f tilde f acute f grave f breve f$\
Greek: $alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega$
$Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega$\
Operators: $costheta$, $ln x$, $a bmod n$, etc.\
Big operators:
[ f(x) = sum_{n = -infty}^infty c_{n}e^{jnx} ]
[ c_{n} = frac{1}{2}int_{-pi}^{pi}f(x)e^{-jnx},mathrm dx ]
%
Bold italic: $bm{abcdefghijklmnopqrstuvwxyz}$\
Bold rm: $mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\
Bold italic: $bm{alpha beta gamma delta epsilon varepsilon zeta eta theta vartheta iota kappa lambda mu nu xi pi varpi rho varrho sigma varsigma tau upsilon phi varphi chi psi omega Gamma Delta Theta Lambda Xi Pi Sigma Upsilon Phi Psi Omega}$
end{document}

xetex unicode-math mathspec math-fonts
xetex unicode-math mathspec math-fonts
asked 59 secs ago
AboAmmarAboAmmar
34.5k32985
34.5k32985
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484424%2fhow-to-use-mathjax-optentype-fonts-with-xelatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484424%2fhow-to-use-mathjax-optentype-fonts-with-xelatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown