Text formatting

For more control over text formatting, use the formatting options for expressions .

Headings

You can insert a heading by beginning the line with between one and six underscores followed by a space. One underscore produces the largest heading and six underscores produce the smallest heading. E.g., the subheading Headings is produced by the code∶
Code
_ Headings
A heading can be centered by adding a greater than sign to the end of the underscores. For example, the heading Text formatting shown above is produced by the code∶
Code
_> Text formatting
When exporting a document to PDF, a table of contents entry is created for each heading.

Controlling the font

You can control the appearance of text by selecting
Insert⟶ Text
from the editor or by using the following formatting commands∶
Description
Example
Grafstate code
Bold
Bold
**{Bold}
Italic
Italic
*{Italic}
Underline
Underline
__{Underline}
Overline
Overline

x
~{Overline}
~x
Highlight
Highlight
!{Highlight}
Code
Code
**{Bold}
\[Code ]
\[Code ]
\[**{Bold} ]
\[\[Code ]]
Superscript
x2
x2n+1
x^2
x^{2n+1}
Subscript
x0
xi-1
x_0
x_{i-1}
A single underscore followed by curly braces is used for a subscript longer than a single character. Two underscores followed by curly braces are used to underline text.

Tabs and indenting

You can insert a tab anywhere in a line with \tab . To indent a line by the equivalent of one tab, begin the line with > followed by a space. To double indent a line, begin the line with >> followed by a space, and so on.
Code
This line is not indented.
> This line is indented.
>>> This line is triple indented.
This line is not indented.
This line is indented.
This line is triple indented.

Centering

To center a line, begin the line with >< followed by a space.
Code
>< This line is centered.
This line is centered.

Breaks

Line breaks

You can insert a line break anywhere in text with // . For example∶
Code
**{List}//\tab1. item//\tab2. item//\tab...
List
    1. item
    2. item
    …

Page breaks

A horizontal line can be inserted by type three or more hyphens as the entire line. The horizontal line shoon below is produced by the code∶
Code
---

When exporting a document to PDF, each horizontal line is interpreted as a page break.