# MathJax rendering in browser but not in print preview

**URL:** https://meta.discourse.org/t/mathjax-rendering-in-browser-but-not-in-print-preview/277230
**Category:** Support
**Tags:** math
**Created:** [August 30, 2023, 5:52pm UTC](https://meta.discourse.org/t/mathjax-rendering-in-browser-but-not-in-print-preview/277230 "2023-08-30T17:52:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)
#### Post date: [August 30, 2023, 5:52pm UTC](https://meta.discourse.org/t/mathjax-rendering-in-browser-but-not-in-print-preview/277230/1 "2023-08-30T17:52:28Z")

</div>

We have a site (behind a firewall unfortunately) in which MathJax works in the browser, but if you press Ctrl-P to print, the MathJax doesn’t render and you just see the raw MathJax markup.

Example content: (although you don’t seem to have MathJax enabled in the [meta.discourse.com](http://meta.discourse.com) forum)

* * *

\sqrt{16} score and e^{j\pi} + 2^3 years ago, our forefathers did something or other.

x^2 + y^2 = z^2

Well, darnit.

---

<div class="post-metadata">

### Author: ![skrdeshmukh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skrdeshmukh/32/323497_2.png) [@skrdeshmukh](https://meta.discourse.org/u/skrdeshmukh)
#### Post date: [August 30, 2023, 6:00pm UTC](https://meta.discourse.org/t/mathjax-rendering-in-browser-but-not-in-print-preview/277230/2 "2023-08-30T18:00:40Z")

</div>

> [@jmsachs](#):
>
> but if you press Ctrl-P to print, the MathJax doesn’t render and you just see the raw MathJax markup

However, Settings → Print option (“…” in upper right) in Chrome and Edge appears to work just fine.

---

<div class="post-metadata">

### Author: ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)
#### Post date: [August 30, 2023, 6:03pm UTC](https://meta.discourse.org/t/mathjax-rendering-in-browser-but-not-in-print-preview/277230/3 "2023-08-30T18:03:43Z")

</div>

Occasionally this works (10% of the time?)

As a side-effect symptom, the CSS looks totally bad.

Here’s an example of when it worked:

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/7/a/27aaf671511ec68b908c8960dd44c83e92991e94.png)

and when it didn’t:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/b/4/1b4e7393b296620b626b8bc3580eb1d483b9590c.png)
