The Grafstate editor

The Grafstate work space has two parts—the document panel on the left and the margin on the right. When you launch Grafstate, the document panel with contain a blank editor.

The editor

The Grafstate editor has the following buttons∶
Icon
Description
Increase the font size.
Decrease the font size.
Insert code into the editor. \\\\ You can type Grafstate code directly into the editor or you can use the Insert menu to help you generate the code using templated and examples.
Update the document. The code in the editor will be added to the document. \\\\ The changes you make in an editor are not part of the document until you select update.
Close the editor. \\\\ You are not able to close an error message. You must resolve the error and update the code.

Using the Insert option

The Insert menu offers the following instructions∶
Item
Description
Blank
Open a blank editor.
Text
Insert text in one of the visual formats (e.g., bold, italic, etc.). \\\\ You can read about formatting text .
Math expression
Compose a math expression (e.g., fractions, square roots, etc.).
Figure
Insert a figure (e.g., tables, plots, etc.)
Computational structure
Insert a computational structure. A computational structure is a process that can be simulated given an input string. \\\\ You can read about computational structures .

Opening an editor

There are three ways to open an editor∶

1You can edit a section of the document by double clicking on that part of the document. An editor will with the Grafstate code for that section. When you are finished editing the code, click the update button or type ctrl-enter .

2To open a blank editor select
Edit ⟶ Blank
 from the Edit menu located at the top of the Shell.

3Press the keyboard shortcut ctrl-alt-b to open a blank editor

Editing a section of the document

In addition to editing the code for a document section (by double clicking), you can right-click on a document section to access the following options∶
Item
Description
Insert before
Insert a new section before the selected section.
Edit this section.
Opens the editor for this section.
Pin to the margin
Add the selected section to the margin. \\\\ The section can be removed from the margin by clicking Unpin.
Copy to the clipboard
Copy the code for this section to the clipboard. \\\\ You can insert a blank section and paste the code from the clipboard.
Delete this section
Remove the selected section from the document.