9
$\begingroup$

Well, finally, after decades of Mathematica rendering notebooks incorrectly in Windows, and after many years of Mathematica not supporting high-resolution displays in Windows, finally version 12.1 fixes these problems. Well, almost

Here's the fly in the ointment: Now the fonts chosen in the documentation are too big: They're using 15-point fonts for default text, which is ridiculously large. This is probably because in the bad old days, before 12.1, Mathematica would render fonts too small (by a factor of 72/96), so the good folks at Wolfram simply upped the font size to make the documentation readable. Which means that now, with fonts suddenly rendered correctly, that size is too large. So, how to fix this?

The easiest solution I can see (short of waiting another 25 years for Wolfram to get those damn font sizes right…) would be to have Mathematica render all of the documentation at a magnification of 0.75, say. So here is my question:

Is it possible to force Mathematica to display all of the notebooks for its documentation at a 0.75 magnification? I figured out that those notebooks use the style sheet "Reference.nb" which I could edit, in principle (after copying it into my user folder hierarchy). I'm just not sure if it is possible to define the magnification of a notebook as a whole in its style sheet, and if so how to do it. I could of course change the magnification for each of the various kinds of cells that are described in Reference.nb, but that's a ton of work, and who knows what I might break by doing so.

Can this be done?

I guess what I am looking for is a statement along the lines of

Cell[StyleData[All], Magnification->0.75]

to be inserted into "Reference.nb" which would cause all content using that style sheet to be displayed at the specified magnification. I tried that, and was almost successful with it, but now the formatting of the initial documentation page (the one with the pretty colored boxes does not work any more, with text cut off and such.

Quick update: After realizing that, unsurprisingly, all style sheets distributed with Mathematica 12.1 use ridiculously large font sizes (standard text is 15pt), I have sent Wolfram my feedback asking them to fix the issue. I won't hold my breath, though; given the history of this issue I expect a fix to appear on a timescale of decades…

$\endgroup$
8
  • 3
    $\begingroup$ go to Preferences/Interface/Global Magnification (on the top) $\endgroup$ – rmw Mar 22 '20 at 9:56
  • $\begingroup$ That’s not a viable solution since it will change the magnification of all notebooks. We need a way to only change it for Mathematica’s documentation. $\endgroup$ – Pirx Mar 22 '20 at 14:02
  • $\begingroup$ The following code SetOptions[InputNotebook[], Magnification -> 0.75], when executed, changes the magnification of the current notebook to 0.75 (1 is the default). Maybe you can try to execute this code for documentation notebooks only? $\endgroup$ – Victor K. Mar 22 '20 at 17:26
  • $\begingroup$ Another idea is to look at what code is being executed when "F1" is pressed, and inject SetOptions there. $\endgroup$ – Victor K. Mar 22 '20 at 17:36
  • 2
    $\begingroup$ Funny, I'd like them at 125% by default! $\endgroup$ – Chris K Mar 23 '20 at 2:54
0
$\begingroup$

After spending some quality time with this issue over the weekend, I have come to the conclusion that there's no good solution at this point. I guess we'll have to live with having to fiddle with the notebook magnification every time we open Mathematica's help. Wolfram just doesn't seem to ever be able to get those details right. Perhaps another twenty years from now they'll be there.

P.S.: As an aside, the built-in palettes are also using font sizes that are far too large. In this case the problem can be solved, however, since there's only a small number of these, and by making them editable, changing their magnification and then saving the fixed versions we can convert them into versions that use reasonable font sizes.

$\endgroup$
3
  • 2
    $\begingroup$ Have you tried changing the Reference.nb style definitions? $\endgroup$ – Michael E2 Mar 23 '20 at 3:15
  • $\begingroup$ You can do even fancier things: mathematica.stackexchange.com/a/46894/5478 $\endgroup$ – Kuba Mar 23 '20 at 7:33
  • $\begingroup$ Yes, I have tried that, and this almost works, except for the main "Wolfram Language Documentation Center" page. This ends up with a tiny font in the search field at the top (incidentally, that font is too small even with the standard Reference.nb style), and all of the tiles are messed up, I was thinking of looking at the corresponding notebook, but I can't even find it. The content it displays may be generated dynamically in some fancy way, so I decided this might be too hard of a nut to crack. Too much work for too little benefit… $\endgroup$ – Pirx Mar 23 '20 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.