I use MathJax in DEVONthink Pro and DEVONthink to Go. First, whatever problems you’re having ultimately turn out to be, it is extremely unlikely that your university has some kind of filters that would block MathJax. There are a number of reasons why that’s extremely unlikely, and we could get into them, but instead, I think it’ll be more fruitful to look at the example posted.

There’s a lot in the posted example that is unnecessary for using MathJax in DEVONthink, and at the same time, the MathJax parts that are there are incomplete, so I think that those are the reasons why it hasn’t worked in your environment. As pointed out by others, the first couple of lines in the file, involving scripts, are not necessary. Perhaps they’re from a forum posting from a time before DEVONthink incorporated MathJax support? In any case, I haven’t found it necessary to use such preambles in my files to get MathJax content to work.

A complication with using MathJax in DEVONthink is that the Markdown engine used (MultiMarkdown) seems to interfere with the interpretation of the delimiters for MathJax notation. In particular, I find that it’s not possible to follow the instructions in the MathJax documentation, specifically where in the section on Writing mathematics for MathJax it’s written:

The default math delimiters are `$$...$$`

and `\[...\]`

for displayed mathematics, and `\(...\)`

for in-line mathematics. Note in particular that the `$...$`

in-line delimiters are **not** used by default.

In DEVONthink, turns out that `$…$`

*is* used, and personally I have not been able to get the `\[ … \]`

form or the double dollar sign form to work. I’ve seen postings in this forum where people show the use of `$$ … $$`

to get display math, and I don’t know why it doesn’t work for me. This tracker issue in the GitHub repository for MultiMarkdown 5 discusses the math delimiters in MultiMarkdown 5 and it seems clear that MultiMarkdown is getting in the way of some of the MathJax forms. (Note: I’m not certain that’s the same version of the MMD parser used in DEVONthink. I think there was a past discussion about this but I can’t find it right now.)

Anyway, here’s what seems to work:

`$ … $`

for inline math
`\\[ … \\]`

for display math

Here’s an example of input and output. First, the settings used:

and a sample input and output: