1
$\begingroup$

Can I call this (a tutorial page) a mathematica notebook?
At least it is a kind of mathematica window, which looks like a common .nb file.

enter image description here

Is it possible to Save/Export this mathematica window in .nb on my local disk just as it looks, I mean, including the areas painted with a yellow highlighter pen ? (Functionally it doesn't matter whether the search bar actually works or not)

The question can be generalized to the following :
Can we save/export any mathematica window in .nb ?

The question is not about the location of tutorial file.
Not relevant to the question, but it is located at
C:\Users\UERNAME\AppData\Local\Programs\Common\Wolfram Research\Documentation.en-us\13.1\Documentation\English\System\ReferencePages\Symbols\ModularInverse.nb

$\endgroup$
2
  • $\begingroup$ You could screen capture the window. $\endgroup$ Commented Nov 29, 2022 at 22:21
  • $\begingroup$ CurrentScreenImage[] ? $\endgroup$
    – Syed
    Commented Nov 30, 2022 at 11:17

1 Answer 1

2
$\begingroup$

You can use Export["file.nb", NotebookObject[...]] to programmatically export any notebook that is currently open in the front end. As a concrete example:

CreatePalette@Button["Export!", Export["output.nb", InputNotebook[]]]

Focusing on the documentation browser and pressing the "Export!" button in the palette created above will create a file called output.nb, which looks like this when opened:

enter image description here

$\endgroup$
1
  • $\begingroup$ The solution really works! $\endgroup$
    – imida k
    Commented Dec 1, 2022 at 0:44

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.