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?Use Type 1 fonts with XeLaTeXHow to combine LaTeX fonts with system fonts in XeLaTeXxelatex mathspec with polyglossiaIncomplete generation of Greek letters with Unicode and XeLaTeXmathspec with XeLaTeX produces Greek character `already defined' errorBold italic math fonts with unicode-math (xelatex)Using multiple math fonts causes characters and spacing problems with delimitersXeLaTeX and Math Fonts from Main FontUse sans serif math operators with Roboto

How did passengers keep warm on sail ships?

How can I define good in a religion that claims no moral authority?

APIPA and LAN Broadcast Domain

Why isn't the black hole white?

Straighten subgroup lattice

Falsification in Math vs Science

Kerning for subscripts of sigma?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

What is the meaning of Triage in Cybersec world?

Worn-tile Scrabble

Deal with toxic manager when you can't quit

Does adding complexity mean a more secure cipher?

Match Roman Numerals

Why can't devices on different VLANs, but on the same subnet, communicate?

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Does HR tell a hiring manager about salary negotiations?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

Cooking pasta in a water boiler

writing variables above the numbers in tikz picture

Why doesn't UInt have a toDouble()?

Button changing its text & action. Good or terrible?

How to display lines in a file like ls displays files in a directory?

Loose spokes after only a few rides



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?Use Type 1 fonts with XeLaTeXHow to combine LaTeX fonts with system fonts in XeLaTeXxelatex mathspec with polyglossiaIncomplete generation of Greek letters with Unicode and XeLaTeXmathspec with XeLaTeX produces Greek character `already defined' errorBold italic math fonts with unicode-math (xelatex)Using multiple math fonts causes characters and spacing problems with delimitersXeLaTeX and Math Fonts from Main FontUse sans serif math operators with Roboto










1















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

usepackageamsmath
usepackagemathspec

setmainfontMathJax_Main-Regular.otf[
UprightFont = MathJax_Main-Regular,
ItalicFont = MathJax_Main-Italic,
BoldFont = MathJax_Main-Bold
]

setmathrmMathJax_Main-Regular.otf % for sin cos ln max ..
setmathsfont(Digits)MathJax_Main-Regular.otf
setmathsfont(Latin,Greek)MathJax_Math-Italic.otf
setboldmathrmMathJax_Math-BoldItalic.otf

usepackagebm

begindocument

sectionMathjax fonts

subsectionMain 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

subsectionMath
Numbers: $123,456.7890$\
Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
Calligraphic: $mathcalABCDEFGHIJKLMNOPQRSTUVWXYZ$\
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_ne^jnx ]
[ c_n = frac12int_-pi^pif(x)e^-jnx,mathrm dx ]
%
Bold italic: $bmabcdefghijklmnopqrstuvwxyz$\
Bold rm: $mathbfABCDEFGHIJKLMNOPQRSTUVWXYZ$\
Bold italic: $bmalpha 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$

enddocument


enter image description here










share|improve this question


























    1















    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

    usepackageamsmath
    usepackagemathspec

    setmainfontMathJax_Main-Regular.otf[
    UprightFont = MathJax_Main-Regular,
    ItalicFont = MathJax_Main-Italic,
    BoldFont = MathJax_Main-Bold
    ]

    setmathrmMathJax_Main-Regular.otf % for sin cos ln max ..
    setmathsfont(Digits)MathJax_Main-Regular.otf
    setmathsfont(Latin,Greek)MathJax_Math-Italic.otf
    setboldmathrmMathJax_Math-BoldItalic.otf

    usepackagebm

    begindocument

    sectionMathjax fonts

    subsectionMain 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

    subsectionMath
    Numbers: $123,456.7890$\
    Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
    Calligraphic: $mathcalABCDEFGHIJKLMNOPQRSTUVWXYZ$\
    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_ne^jnx ]
    [ c_n = frac12int_-pi^pif(x)e^-jnx,mathrm dx ]
    %
    Bold italic: $bmabcdefghijklmnopqrstuvwxyz$\
    Bold rm: $mathbfABCDEFGHIJKLMNOPQRSTUVWXYZ$\
    Bold italic: $bmalpha 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$

    enddocument


    enter image description here










    share|improve this question
























      1












      1








      1








      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

      usepackageamsmath
      usepackagemathspec

      setmainfontMathJax_Main-Regular.otf[
      UprightFont = MathJax_Main-Regular,
      ItalicFont = MathJax_Main-Italic,
      BoldFont = MathJax_Main-Bold
      ]

      setmathrmMathJax_Main-Regular.otf % for sin cos ln max ..
      setmathsfont(Digits)MathJax_Main-Regular.otf
      setmathsfont(Latin,Greek)MathJax_Math-Italic.otf
      setboldmathrmMathJax_Math-BoldItalic.otf

      usepackagebm

      begindocument

      sectionMathjax fonts

      subsectionMain 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

      subsectionMath
      Numbers: $123,456.7890$\
      Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
      Calligraphic: $mathcalABCDEFGHIJKLMNOPQRSTUVWXYZ$\
      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_ne^jnx ]
      [ c_n = frac12int_-pi^pif(x)e^-jnx,mathrm dx ]
      %
      Bold italic: $bmabcdefghijklmnopqrstuvwxyz$\
      Bold rm: $mathbfABCDEFGHIJKLMNOPQRSTUVWXYZ$\
      Bold italic: $bmalpha 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$

      enddocument


      enter image description here










      share|improve this question














      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

      usepackageamsmath
      usepackagemathspec

      setmainfontMathJax_Main-Regular.otf[
      UprightFont = MathJax_Main-Regular,
      ItalicFont = MathJax_Main-Italic,
      BoldFont = MathJax_Main-Bold
      ]

      setmathrmMathJax_Main-Regular.otf % for sin cos ln max ..
      setmathsfont(Digits)MathJax_Main-Regular.otf
      setmathsfont(Latin,Greek)MathJax_Math-Italic.otf
      setboldmathrmMathJax_Math-BoldItalic.otf

      usepackagebm

      begindocument

      sectionMathjax fonts

      subsectionMain 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

      subsectionMath
      Numbers: $123,456.7890$\
      Alphabet: $abcdefghijklmnopqrstuvwxyz$ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\
      Calligraphic: $mathcalABCDEFGHIJKLMNOPQRSTUVWXYZ$\
      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_ne^jnx ]
      [ c_n = frac12int_-pi^pif(x)e^-jnx,mathrm dx ]
      %
      Bold italic: $bmabcdefghijklmnopqrstuvwxyz$\
      Bold rm: $mathbfABCDEFGHIJKLMNOPQRSTUVWXYZ$\
      Bold italic: $bmalpha 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$

      enddocument


      enter image description here







      xetex unicode-math mathspec math-fonts






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 mins ago









      AboAmmarAboAmmar

      34.5k32985




      34.5k32985




















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

          Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

          Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm