MathJax renders as too bold in PDF and printing

Announcements, comments, ideas, feedback, and "How do I... ?" questions
Post Reply
GNFS
Posts: 27
Joined: Mon Jun 11, 2018 8:15 pm

MathJax renders as too bold in PDF and printing

Post 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}}
You do not have the required permissions to view the files attached to this post.
User avatar
euler
Administrator
Posts: 5094
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: MathJax renders as too bold in PDF and printing

Post 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?
Image
impudens simia et macrologus profundus fabulae
GNFS
Posts: 27
Joined: Mon Jun 11, 2018 8:15 pm

Re: MathJax renders as too bold in PDF and printing

Post by GNFS »

Thanks for the offer. I've gotten used to the name here now so I'll just leave it for now.
Post Reply