Previous: Symbols, Up: Free Drawing [Contents]

#### 9.13.3 Inline text

Sometimes one just wants to add some text to the diagram and in this case the `symbol text` syntax may be a bit heavy and difficult to do. As an easier way to do that Msc-generator offers the `text at` command.

    text at pos [attributes]: label;

This draws just text (you must specify a label) at the vertical position the command is written. You can use simple horizontal position specifiers, like below to place the text centered in-between two entities; left of an entity, centered around an entity or right of an entity. You can optionally specify a number, which will be interpreted as a pixel offset to the right (negative value to the left.)

    entity-entity [number]
    entity-- [number]
    entity- [number]
    entity [number]
    entity+ [number]
    entity++ [number]

You can influence the default appearance via the `text` built-in style.