Working in Document Mode - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Create Maple Worksheets : Create and Open Worksheets : worksheet/documenting/DocumentMode

Working in Document Mode

  

Document mode allows you start solving problems right away, free of the worksheet environment. In Document mode:

• 

Your work area is a blank page

• 

No input prompt or execution group is displayed

• 

You can combine text and math in the same line

• 

By default, math is entered as Standard (2-D math) input

• 

Command completion is supported

• 

As with worksheets, you can insert images, plots, tables, sketches, and Maple spreadsheets

Starting in Document Mode

  

By default, Maple opens in Document mode.

  

To start in Document mode:

• 

From the File menu, select New, and then Document Mode.

Saving Documents

  

Maple Documents are saved as .mw files. When you open a file that is a Maple document, Maple opens automatically in Document mode.

Viewing Maple Code in Documents

  

Maple Documents are created as a series of Document Blocks. Each time you press Enter, a new document block appears. You can expand document blocks to view hidden code.

  

To view code in a Document:

1. 

As a visual aid, ensure that the Markers feature is activated. From the View menu, select Markers. Document block markers are displayed in the left sidebar.

2. 

Insert the cursor in a document block to be expanded.

3. 

From the View menu, select Group and Block Management followed by Expand Document Block.

4. 

To hide the code again, select Collapse Document Block from the same list.

2-D versus 1-D Math in Document Mode

  

By default, input is in 2-D or standard math, but you can also enter commands in 1-D math, called Maple Input.

  

Entering commands in 1-D math

1. 

Place your cursor at the beginning of a line.

2. 

From the Insert menu, select Maple Input. Mathematical text that you enter on that line will be displayed in a monospaced, bold, red font.

Notes:

• 

All commands on that line must be in 1-D math.

• 

To enter 1-D math on subsequent lines, you must perform the steps above or use  the keyboard shortcut Ctrl + M (Command + M for Macintosh) to switch to 1-D math mode at the beginning of each line.

Executing 2-D Math in Document Mode

  

To execute 2-D math in Document Mode and document blocks, use any of the following methods:

• 

Press Ctrl+=. This evaluates and displays results inline.

• 

Use the Edit menu item Evaluate and Display Inline.  (This can also be invoked through the context-sensitive menu.)

• 

Use the Edit menu item Evaluate.

• 

Press Enter. This evaluates and displays results on the next line or, if set in the Options dialog, simply evaluates.

  

The dual behavior of the Enter key in Documents and Document blocks is set in Options dialog.

  

To display output when using the Enter key:

1. 

From the Tools menu, select Options. The Options dialog opens.

2. 

Click the Display tab.

3. 

Select the Display output from Evaluate (Document Block) check box.

4. 

Click Apply to Session.

Complete Command

1. 

Begin entering a command in the worksheet.

2. 

To list all Maple packages, commands, functions, and symbols (2-D math mode) that match the entered text, select Tools and then Complete Command, or use the shortcut key:

  

Command + Shift + Space, Macintosh

  

Ctrl + Space, Windows

  

Ctrl + Shift + Space, Linux

See Also

2-D Math, Ditto Operator, Document Blocks, Document Mode and Worksheet Mode, Options>Display, Statement Separator


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam