14
$\begingroup$

Perhaps because I am used to the old style of Mathematica Documentation, the large thumbnails in the "Details and Options" section in version-11.1 Documentation look cumbersome and redundant to me. So I tried to remove them. But I did not find the code in the "Reference.nb" stylesheet that relates to these items.

So how can these thumbnails be removed? Thank you.

enter image description here

Actually I would like to completely restore the version-10 Documentation style, which I think is aesthetically better than the one in 11.1, but trying to do it by replacing version-11.1 stylesheet files with the old ones proved to be wrong.

$\endgroup$
10
  • 3
    $\begingroup$ I'm afraid these new design elements are hard-coded into the Documentation pages and there is no way to remove them without editing these pages... $\endgroup$ Commented May 8, 2017 at 12:07
  • 10
    $\begingroup$ What's very annoying is that if the kernel is busy, the button that opens the details section won't work. $\endgroup$
    – Michael E2
    Commented May 8, 2017 at 12:11
  • 5
    $\begingroup$ I, too, find these thumbnails of the Details and Options section extremely annoying. Presumably they were added because new or inexperienced users would not click the Details and Options heading to open the cell group. Another instance of making things easier for new users at the expense of experienced users. $\endgroup$
    – murray
    Commented May 8, 2017 at 19:02
  • 6
    $\begingroup$ A lot of times at different magnifications the thumbnails look terrible or are cut off horizontally, bad design indeed $\endgroup$
    – M.R.
    Commented May 9, 2017 at 4:23
  • 4
    $\begingroup$ I do not think that what you are asking for can be done in a reasonable manner. If there are things that you consider objectively bad in the new documentation style, why don't you send a report to Wolfram Support? If multiple people send well-written, reasonable reports (not rants and complaints!) then perhaps they will do something. (I also do not like the new style, and I pointed out several shortcomings to Support. One user's feedback won't have any effect though. They did fix the missing tutorial links in 11.1.1 at least.) $\endgroup$
    – Szabolcs
    Commented May 9, 2017 at 10:15

1 Answer 1

9
$\begingroup$

How to hide details and option thumbnails cell:

Shortly, we need to set CellOpen -> False for "NotesThumbnails" style(which is also done when the cell is clicked), but we can't do that on a stylesheet level because there is already code on a cell level for this cell and we don't want to edit all documentation notebooks.

The solution is almost the same as in Is there a way to make the "Details" section of the Documentation expanded by default?, only the style and an action are different.

  1. If it is not there yet, copy Reference.nb to appropriate directory in $UserBaseDirectory:

    styleDir = FileNameJoin[{"SystemFiles", "FrontEnd", "StyleSheets", "Wolfram"}]
    
    If[! DirectoryQ@#, CreateDirectory@#] & @ 
        FileNameJoin[{$UserBaseDirectory, styleDir}]
    
    
    CopyFile @@ (
      FileNameJoin[{#, styleDir, "Reference.nb"}] & /@ {
        $InstallationDirectory, $UserBaseDirectory}
    )
    
    SetOptions[NotebookOpen @ %, {Editable -> True, Saveable -> True}]
    
  2. Find "NotesThumbnails" style spec (Ctrl+F)

  3. Add an option:

    CellDynamicExpression :> Refresh[
        SelectionMove[ EvaluationCell[], All, Cell]
      ; SetOptions[ NotebookSelection[], CellOpen -> False]
      ; SetOptions[ EvaluationCell[], CellDynamicExpression -> None] (*1*)
      , None
    ]
    

    (1 - CelllynamicExpression seems to be too sensitive so we remove it when done to not interfere later)

Works even when the kernel is busy.

enter image description here

$\endgroup$
1
  • $\begingroup$ It works perfectly. Thanks a lot! $\endgroup$
    – User18
    Commented May 10, 2017 at 5:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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