Ken Monks
    Dept. of Mathematics
    University of Scranton
    Scranton, PA 18510
SITE CONTENTS
Home Page Software Courses
Publications Student Research Misc
Phone: (570) 941-6101   
Fax: (570) 941-5981   
Office: STT163-A   
Email:    monks@scranton.edu 
 


Creating your own Maple Library in Maple (Windows)

Maple allows the user to create a personal library that you can use to store Maple programs and object using the savelib() command. If you don't already have a personal library on your machine, you can create one by following the instructions below. Don't do this if you are on a lab machine or other machine that you do not have write-access to. Note: you only need to do this one time!

Installing a personal library

  1. Create an empty directory on your hard drive where you want the library to be installed. For the sake of these instructions, we will call it c:\files\mylib , but you can call it whatever you like as long as you make the appropriate changes below.

  2. Run Maple and execute the following commands to create the library files. Note that you have to double the \ character when you use it in a maple string. Be sure to change the value of LibDir to the name of the directory you created in Step #1.

    LibDir:="C:\\files\\mylib":
    march('create',LibDir,10000):

  3. In order to enable the personal library you must place the following commands at the end of your maple.ini file in the maple startup directory. To determine your Maple startup directory, close all running copies of Maple, run a new version of Maple and execute "currentdir();" as the first command in the worksheet -- it will return the startup directory. If you don't already have a maple.ini file, you should create one with Notepad or any other text editor. Be sure to replace "C:\\files\\mylib" with whatever directory you specified in LibDir above.

    libname:="C:\\files\\mylib",libname:
    savelibname:="C:\\files\\mylib":


    [Notes: if you have shortcuts to start Maple in a different directories, you should put a copy of maple.ini in each startup directory. You can also use the command line argument -i to specify the location of the .ini file. Also, if you want to be able to load packages from your personal library when loading Maple worksheets by double clicking on existing .mws files you should go to Folder Options in the Windows Control Panel. Under the File Types Tab, scroll down to the .mws extension and click the Advanced button and edit the Open command. Under 'Application used to perform action' add the command line switch -i "c:\[path to your maple.ini file]" where [path to your maple.ini file] is the complete path and filename for your maple.ini file. For example, the entry under 'Application used to perform action' you would have something like:

    "C:\Program Files\Maple 9.5\bin.win\cwmaple9.5.exe" -i "c:\Program Files\Maple 9.5\maple.ini" "%1" 

  4. After you make these modifications to the maple.ini file, shut down maple and reload the program for the changes to take effect.

Installing a personal help database

  1. After installing your personal library, you may want to initialize a personal help database. Open a worksheet that you want to save as a help file.

  2. Choose Help/Save to Database from the Maple menu.

  3. Type a name for this help file in the Topic input box (this is the name that will retrieve the help file when you type ?yourtopicname at a maple prompt).

  4. If your personal database doesn't appear listed in the list of writeable databases, type the name of your personal library directory followed by maple.hdb in the Database input box. For example, if your personal library is in c:\files\mylib, then you would type c:\files\mylib\maple.hdb in the Database input box.

  5. Click Save Current.

This will create your help database. In the future, if you want to save other help files, your database should appear automatically in the Database input box.

Further information

For further information see the Maple program help for the savelib command.

You can also read the instructions for making your own packages at Maple's web site.


Self Portrait

Many mathematics files on this site are in pdf format. If your browser does not display pdf files, click here for assistance.
This page was last  updated on Tuesday, January 04, 2005 12:36:50 PM
. © Ken Monks