I'm working on a package that needs to be installed into an arbitrary, "non standard" path (i.e., not
I have added the package's path to
$Path in order to allow Mathematica to load the package via
Needs, and this works well.
My problem is that the package also needs to include custom stylesheets and custom palettes, and these are not available in the front-end menus (Format-->Stylesheet and Palettes, respectively) when the package is loaded from a non-standard location.
If I put the package files in
$BaseDirectory the custom stylesheet and palette are accessible from the front-end menus, since the package follows the standard structure:
but this doesn't seem to work if it is loaded from an arbitrary path.
This Wolfram tutorial says that:
Stylesheet are discovered by the front end in the following locations.
Stylesheets contained in directories are grouped under submenus in the Stylesheet menu. Add-on applications following the same layout also add stylesheets to the menu.
How can I install a package in a directory that's not
$BaseDirectory, and still make the stylesheets and palettes available in the Mathematica menus?