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 other objects.
|
|
Starting in Document Mode
|
|
|
By default, Maple opens in Document mode.
|
|
To start in Document mode:
|
•
|
On the quick access toolbar or from the File menu, select New (
).
|
|
|
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.
|
|
|
Creating Documents within a Maple Workbook
|
|
|
To create a new document in a workbook:
|
1.
|
In the Workbook tab, right-click anywhere inside the Navigator palette.
|
2.
|
From the context menu, select New, then select Document in Workbook.
|
|
Alternatively, on the Workbook tab of the ribbon, in the Add group, click Document to Workbook.
|
|
|
Viewing or Copying 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: On the View tab of the ribbon, ensure Markers (
) is toggled on. Document block markers are displayed in the left sidebar.
|
2.
|
Place the cursor in a document block to be expanded. Note: Look for red lines appearing in the document block markers. The red lines indicate that there is code inside of the document block. If you right-click on the red line and select Document Block > Show Command, you can view the code.
|
|
Alternatively, on the Edit tab, click Show (
), and then click Show Command.
|
3.
|
To hide the code again, clear the check box beside Show Command.
|
|
You can also copy the underlying code without going through the above process.
|
|
To copy the underlying command:
|
1.
|
Place the cursor on the arrow for the context-sensitive operation.
|
2.
|
Right-click (Control-click, Mac) and select Copy Command from the menu.
|
3.
|
On a new line, paste the command.
|
|
|
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 Alt + Enter (Alt + Return, Mac). This evaluates and displays results inline.
|
•
|
On the Evaluation tab, click Evaluate and Display Inline (
). (This can also be invoked through the Context Panel.)
|
•
|
On the Evaluation tab, click Evaluate (
).
|
•
|
Press Enter (Return, for Mac). This evaluates and displays results on the next line or, if set in Options>Display, simply evaluates.
|
|
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, on the Tools tab, click Complete Command (
), or use the shortcut key:
|
|
Esc, Mac, Windows, and Linux
|
|
Ctrl + Shift + Space, Linux
|
|
|
|
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. Maple input is inserted on a new line, at a prompt, and is displayed in a monospace red font.
|
|
|
|
|
|
|