Tuesday, May 22, 2007

Expand Mathematica 6 Documentation Searching

Mathematica 6 from Wolfram Research has revamped the way previous versions indexed and exposed documentation. Previously blogged in more detail here.

However, if you are a fan or user of the GUIKit package, you may be surpised on how limited the search results are when using the built-in Documentation Center window.
It turns out that although the locally installed GUIKit package contains the updated documentation and indexing files. Mathematica 6 fails to include the Packages/ directory that GUIKit lives in.

You can add these packages, and updated searching results by adding the following in your local Kernel/init.m:


Needs["ResourceLocator`"];

ApplicationDirectoryAdd[
ToFileName[{$InstallationDirectory, "AddOns"}, "Packages"]];


You could update the ResourceLocator package code with this additional application directory but this style of using an init.m keeps your modifications outside the Mathematica distribution in case of updates.

No comments: