Page 1 of 1

MathJax renders as too bold in PDF and printing

Posted: Thu Aug 27, 2026 3:47 am
by GNFS
A new problem since last year is now the rendered MathJax looks too bold in Chromium rendering the site as PDF. More importantly, this affects printing the page.
pe1000.png

After some debugging I found MathJax uses SVG

Code: Select all

stroke-width: 3

Adding

Code: Select all

output: { blacker: 0 }
is the intended fix according to "(e.g. using print-to-PDF the output will look extremely bold in most PDF readers even if it will print fine)" https://github.com/mathjax/MathJax/issues/2859

This is what correct printing should look more like:
pe1000_fix.png
A separate issue is the logo prints twice due to the print CSS not hiding <header>. The CSS print stylesheet should include

Code: Select all

@media print{header{display:none}}

Re: MathJax renders as too bold in PDF and printing

Posted: Thu Aug 27, 2026 10:54 pm
by euler
Not only do you report two bugs, but provide the solutions. Thanks! I'm not sure why I was only applying the @media print to just the #info_panel and not the whole header?! It looks like both problems have been fixed.

On another note, would you like your username updated on this forum to match the main site?

Re: MathJax renders as too bold in PDF and printing

Posted: Fri Aug 28, 2026 8:56 pm
by GNFS
Thanks for the offer. I've gotten used to the name here now so I'll just leave it for now.