Preview Latex formulas

For some reason I could not find anything related in the forums.
Is there a way (maybe with a 3rd party package) to preview Latex formulas in the DTP?

For example, I have this formula in Latex

R_{excess} = R_{T} - Return_{rf}

Which renders nicely in preview:
Screen Shot 2020-06-05 at 13.16.51
Can I do anything similar in DTP?

Try enabling MathJax is Preferences > Media

1 Like

Ah, yes, this seems to work perfectly!!!

BTW, I see there is a builtin support for prism.js on the same settings page. Does it mean I don’t need to include a reference to prism.js on every new document?
Right now I put this into every new document:

<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
<script src=""></script>

Only if your file supports languages which are not supported by the included Prism files.

1 Like

So in other words, the prism.js that comes with DT supports everything that vanilla prism.js supports?

It includes some additional languages like Objective-C, Swift, AppleScript etc. but most are not included as the css/js files would be really large otherwise.

1 Like