Create a User Profile - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Create a User Profile

Create a User Profile so that you can apply it to worksheets and optionally set it as your default User Profile. For more information about User Profiles, including applying them and setting a default User Profile, see User Profile.

• 

You can save your User Profiles to any directory on your computer. However, Maple automatically looks for your User Profiles in the following directories:

– 

Windows: C:\Users\%USERNAME%\AppData\Roaming\Maple\VERSION\profiles and C:\Program Files\Maple VERSION\profiles where %USERNAME% is your user name and VERSION is your Maple version.

– 

Mac: HOMEDIR/Library/Preferences/Maple/VERSION/profiles and MAPLEDIR/profiles

– 

Linux: HOMEDIR/.maple/VERSION/profiles and MAPLEDIR/profiles

where HOMEDIR is your home directory (that is, the output from kernelopts(homedir)), MAPLEDIR is your Maple installation directory (that is, the output from kernelopts(mapledir)), and VERSION is your Maple version.

• 

The User Profile must be a text file with a .mapleprofile file extension.

• 

A valid User Profile must have at least one of the following sections: [UnitFormat], [NumericFormat], and [MapleCode]

• 

The [UnitFormat] section has only one option, DefaultUnitSystem. This option sets the default system of units for your worksheet.

• 

The [NumericFormat] section has four options to set the default numeric formatting for your worksheet: OutputMask, ApplyInteger, ApplyRational, and ApplyExponent.

• 

The [MapleCode] section is where you enter the Maple commands that you want to insert into the Startup code section of your worksheet. This section must be the last section of your User Profile.

 

To create a User Profile:

1. 

Open a text editor.

2. 

To set the system of units, enter the following commands in the text editor.

[UnitFormat]

DefaultUnitSystem=System

  

In the preceding code, substitute System with one of the following: Atomic, CGS, EMU, ESU, FPS, MKS, MTS, or SI.

3. 

To set the numeric formatting, enter the following commands in the text editor.

[NumericFormat]

OutputMask=Mask

ApplyInteger=true/false

ApplyRational=true/false

ApplyExponent=true/false

  

Notes:

• 

Mask is a string that sets the numeric formatting you want. For example, if you enter the string #,#.0{2}, Maple will format numeric output with commas to separate thousands and will round results to the second digit after the decimal.

• 

ApplyInteger, ApplyRational, and ApplyExponent set whether or not to apply the formatting to integers, rationals, and exponents and can be set to either true or false.

  

For details on these options, see Formatting Numbers.

4. 

To insert Maple commands into the Startup code region of a worksheet, enter the following commands in the text editor.

[MapleCode]

<your Maple code>

  

where <your Maple code> are the Maple commands that you want the User Profile to insert into the Startup code region of the worksheet.

5. 

Save the file (with a .mapleprofile file extension) to one of the following directories (depending on your operating system). Create the profiles directory if it does not exist.

– 

Windows: C:\Users\%USERNAME%\AppData\Roaming\Maple\VERSION\profiles where %USERNAME% is your user name and VERSION is your Maple version.

– 

Mac: HOMEDIR/Library/Preferences/Maple/VERSION/profiles

– 

Linux: HOMEDIR/.maple/VERSION/profiles

Note: Although you can save your User Profile to any directory in your computer, Maple automatically looks for your User Profiles in the directories specified here.

After you have created the User Profile, the next step is to apply the newly created User Profile to a worksheet or set it as your default User Profile. For information about these steps, see User Profile.

See Also

Formatting Numbers

Startup Code

Units

Units Formatting

User Profile