Commands Used on Text

Like expressions, text is also created in modules by creating objects. For example, there is an object named Text that is used to contain a string of text. As a result, commands can be applied to text and text formatting in the same way that they can be applied to any other expression.

The commands covered here are implemented in the TextFormatting library. A reference to this library needs to be included in your document in order for these commands to work as described here.

The Left and Right Commands

The Left and Right commands (l and r) can be used to change the ordering of formatting on text. For example, if you have a margin setting followed by a bullet

You can highlight the bullet and use the Left command to move it to the other side of the margin.

Similarly, with the bullet still highlighted, you can use the Right command to put it back in it's original position. To use these commands, you have to switch to Standard notation so that the formatting is visible and can be highlighted.

The Group Command

The Group command (Ctrl + G) is used to combine several lines underneath formatting or to take several lines that are already under a single formatting object and apply the formatting to each line separately. For example, if you highlight the whole content list

and use the Group command (Ctrl + G), you get

All of the content has been moved inside of the bullet formatting. Applying the Group command again gives

The Group command can be used any time you highlight more than one item in a content list or anytime there is a content list inside of a formatting object. It may be easier to see what's happening by switching to the Standard notation.