Using Document Blocks
With the Document Block feature, you can create Maple worksheets or documents that present text and math in formats similar to those found in business and education documents. If your main purpose is to create a document, you can use Document Mode, which is a Maple worksheet comprised of document blocks.
With document blocks, note the following:
Input prompts and execution groups are not displayed.
(Optional) Before using document blocks, set your worksheet to display Markers. Icons representing document blocks are displayed in a vertical bar left of the associated text.
To activate markers:
From the View menu, select Markers.
You can also create document blocks within Worksheet mode.
View Document Block Code
Expand an Execution Group within a Document Block
Switch between 2-D Math Input and Output
Applying Document Blocks in Worksheet Mode
2-D Math in Document Blocks
To view the contents, that is, to expand the document block to see its code and expanded execution groups:
Place the cursor in the document block region.
From the Edit menu, select Document Blocks.
Select Show Command.
To hide code again, clear the check box beside Show Command.
Note: Document blocks will always try to display something; output will be displayed if available. If there is no output, then input will be displayed.
An execution group is a grouping of Maple input with its corresponding Maple output. It is distinguished by a large square bracket called a group range at the left. As document blocks can contain many execution groups, you can select to expand one execution group within a document block.
From the Edit > Document Blocks menu, select Show Execution Group.
To hide the group, clear the check box beside Show Execution Group.
Place the cursor in a 2-D math input or output section in a document block region.
From the Edit > Document Blocks menu, select Toggle Input/Output Display.
Enter input at the Maple command prompt.
Note: These instructions are for Worksheet mode.
Execute the area, creating output that may be referenced elsewhere in the document. See Equation Labels.
Intersperse the area with the content that is to remain visible, adding references to the input and output in the appropriate locations.
Select the area (text and math content) you want to format.
From the Edit > Document Blocks menu, select Create Document Block.
Select Edit > Document Blocks > Inline Document Output.
The block displays text and 2-D math output only. You can select areas to display 2-D math input instead of output.
Select the output region you want to display as input. Select Edit > Document Blocks > Toggle Input/Output Display. The selected region displays input.
In document blocks, to execute all 2-D math input, use any of the following methods:
Press Alt + Enter (Alt + Return, for Mac). This evaluates and displays results inline.
Use the Evaluate menu item Evaluate and Display Inline. (This can also be invoked through the Context Panel.)
Use the Evaluate 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 (Evaluate menu item) is set in the Display tab of the Options dialog. See Options>Display.
Documents and Worksheets
Download Help Document
What kind of issue would you like to report? (Optional)