74

As the title says, I could use an exhaustive list of all Stack Exchange sites that use MathJax. If the list included any site-specific customizations made to the MathJax configuration on each site, that would be even better.

69

Which sites support MathJax?

These sites (and their respective Meta sites) support MathJax:

  1. 3D Printing
  2. Amateur Radio
  3. Artificial Intelligence
  4. Astronomy
  5. Aviation
  6. Bioinformatics
  7. Biology (with mhchem extension)
  8. Blender
  9. Chemistry (with mhchem extension)
  10. Code Golf (with \$ delimiters)
  11. Code Review (with \$ delimiters)
  12. Computational Science
  13. Computer Graphics
  14. Computer Science
  15. Computer Science Educators
  16. Cross Validated
  17. Cryptography
  18. Data Science
  19. Earth Science (with mhchem extension)
  20. Economics
  21. Electrical Engineering (with \$ delimiters)
  22. Engineering
  23. Game Development (with \$ delimiters)
  24. History of Science and Mathematics
  25. Materials Modeling (with mhchem extension)
  26. MathOverflow
  27. Mathematica
  28. Mathematics
  29. Mathematics Educators
  30. Operations Research
  31. Physics
  32. Psychology & Neuroscience
  33. Puzzling
  34. Quantitative Finance
  35. Quantum Computing
  36. Robotics
  37. Role-playing Games (with \$ delimiters)
  38. Signal Processing
  39. Space Exploration
  40. Theoretical Computer Science
  41. Worldbuilding

This list was complete as of 2020-06-13. If you notice that it has become outdated, please update it.

Run the Stack Snippet to get the live list based on /sites from the Stack API. Note that the snippet does not check sites for the mhchem extension or \$ delimiters, only for the mere presence of MathJax; these parenthetical notes are hard-coded into the output. If any of these are out of date, please update the specials list or leave a comment on this post to let the author know to change it:

// edit below structure to indicate mathjax specific settings
// remove all spacees and/or - from the name of the site
// all lowercase
var specials = {
  biology: { mhchem: true },
  chemistry: { mhchem: true },
  earthscience: { mhchem: true },
  materialsmodeling: { mhchem: true },
  electricalengineering: {delim: true },
  codegolf: { delim: true },
  codereview: { delim: true },
  gamedevelopment: { delim: true },
  roleplayinggames: { delim: true }
 };

// no changes needed after this
function onload() {
  
  // error handling
  if (xhr.status !== 200) {
    document.getElementById('result').textContent = 'An error occurred: ' + xhr.status;
    return;
  }

  function filter(items) {
   var i, 
       sites =[];
   for(i=0; i < items.length; i++) {
     if (items[i].site_type === 'main_site' &&
         items[i].markdown_extensions &&
         items[i].markdown_extensions.indexOf('MathJax')>-1)
       {
          sites.push(items[i]);
       }
     }
    return sites; 
  }

  function getExtensions(sitename) {
    var sec = specials[sitename.toLowerCase().replace(' ','').replace('-','')],
        extra = '';
    if (sec !== undefined) {
      extra = '(with ';
      if (sec.mhchem) extra = extra + 'mhchem extension';
      if (sec.delim) extra = extra + '`\\$` delimiters';
      extra = extra + ')'
     }
     return extra;
  }

  function buildMarkdown(site, extra) {
    var content = [
      '1. [',
      site.name,
      '](',
      site.site_url.substr(site.site_url.indexOf(':') + 1),
      ') ',
      extra
    ], 
    pre = document.createElement('pre');
    pre.innerHTML = content.join('');
    return pre;
  }

  function processSites(sites) {
    var i,
      result = document.getElementById('result'),
      md = document.getElementById('md'),
      li, 
      extra;

    for(i = 0; i < sites.length; i = i + 1) {
        extra = getExtensions(sites[i].name);
        li = document.createElement('li');
        li.textContent = sites[i].name + ' ' + extra;
        result.appendChild(li);
        md.appendChild(
           buildMarkdown(sites[i], extra)
        );
    }
  }

  function sortSiteName(l, r) {
    return l.name<r.name?-1:1;
  }

  function process(txt) {
    var data =  JSON.parse(txt);
    processSites(filter(data.items).sort(sortSiteName));
  }
  
  process(xhr.responseText);

}

var xhr = new XMLHttpRequest();
xhr.open(
  'GET',
  'https://api.stackexchange.com/2.2/sites?pagesize=500&filter=!*L6SiaRiUSk*Z2zr');
xhr.addEventListener("load", onload);
xhr.send();
<ol id="result">
</ol>

<div id="md">
</div>

It's possible to examine the configuration programmatically, as suggested by @IlmariKaronen; here is a user script which does. (It doesn't work as a snippet because of CORS protection.)

Why doesn't [site X] support MathJax?

MathJax increases page load times drastically, so it's only supported on sites that have demonstrated a serious need for it. For more information, see LaTeX on Stack Overflow?

It is intentionally deactivated on TeX - LaTeX, as generally, site users want to see the code more than they want to see the rendered output.

  • 11
    Just as a remark: It is intentionally deactivated on TeX.SE, cf. Can we turn off math-tex please?, and to clear up a common misunderstanding: It is also off-topic there to ask MathJax related questions. – Speravir Jan 18 '14 at 5:10
  • 3
    @Speravir: apparently, the topicality of MathJax questions on TeX.SE is "marginal". – Ilmari Karonen Jan 19 '14 at 20:14
  • 2
    Please enable it on Stack Overflow. – endolith Aug 25 '17 at 3:06
  • 1
    Physics SE doesn't have MathJax on the meta site, which causes continuous troubles there. – peterh - Reinstate Monica Sep 20 '17 at 13:50
  • 1
    @endolith The SE has a strong urge to make all page rendering in tenths of seconds possible on most client machines. I already tried to convince an SE insider from that the mathjax should be conditionally initialized on the page requests where there is a formula on the page. The answer was a polite mentioning, that they want to remain still so fast (then became unresponsive + nothing happened). – peterh - Reinstate Monica Sep 20 '17 at 13:56
  • 2
    @endolith It can also explain, why the SE handles the SO differently. For example, on the SE sites, it is no problem, if there is some topic overlap. But it seems, they have a strong wish to collect practically all programming questions to the SO and that it should remain undivided and very fast, forever. This is likely also the reason, why the SO has a lot of improvements what the SE sites get only with a delay, or never. Maybe business logic could be the most realistic explanation (i.e. bosses simply calculate paid work hours / generated income and these numbers can be strongly for the SO). – peterh - Reinstate Monica Sep 20 '17 at 14:01
  • @endolith Btw, there are simple userscripts which enable mathjax simply everywhere. – peterh - Reinstate Monica Sep 20 '17 at 14:03
  • 2
    The "funny" thing is, that tex.stackexchange.com somehow doesn't have MathJax support, on mysterious reasons. – peterh - Reinstate Monica Aug 22 '18 at 23:23
  • 3
    @peterh The reason why is explained here: tex.meta.stackexchange.com/questions/1272/… – Sonic the Masked Werehog Aug 23 '18 at 5:40
  • 3
    @SonictheInclusiveHedgehog That is not an explanation, just a simple statement. The very little "explanation" part is non-sense (code can be still shown, just \$s it should be enclosed in `). Probably their real reason is that having MathJax support would focus the site to MathJax and distract other Tex implementations. However, if it is so, then they should say that. – peterh - Reinstate Monica Aug 23 '18 at 6:16
  • 2
    @peterh If you disagree with their decision to not support MathJax, the best place to contest that would be on their per-site meta, not in comments here. – Sonic the Masked Werehog Aug 23 '18 at 6:46
  • @SonictheInclusiveHedgehog I don't want to contest it, in all others they are nice people. – peterh - Reinstate Monica Aug 23 '18 at 6:47
  • @Glorfindel The proper way to solve the deficiency is to fix the snippet at the bottom so it correctly scans all sites for the feature. Otherwise, when the post is next updated based on the snippet, it will be removed again. – Sonic the Masked Werehog May 31 at 0:07
  • @SonictheStay-HomeHedgehog o_O didn't notice the script was part of the post ... – Glorfindel May 31 at 9:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .