# 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:

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="https://configurationfiles.gitlab.io/prismjs/prism.css" rel="stylesheet">
<script src="https://configurationfiles.gitlab.io/prismjs/prism.js"></script>