## Macro Command Reference

`ptext <text> <AUTOTEXTPOS> [angle] [offset] [COLOR]`

Adds an auto positioning text label to the document. This command uses the default color and the default font. The generated text label has the tag 998.
`[AUTOTEXTPOS]`: The position for automatically positioned text label.
`[angle]`: The text angle (can be 0, 90, 180 or 270).
`[offset]`: Offset for automatically positioned text label.
`[COLOR]`: The text color as hexadecimal string.

`AUTOTEXTPOS`

A parameter wich defines the alignment of different objects, possible values:

| `outsidetopleft otl 10` | `outsidetopcenter otc 11` | `outsidetopright otr 12` |
`outsidelefttop olt 21` | `topleft tl 1` | `topcenter tc 2` | `topright tr 3` | `outsiderighttop ort 13`
`outsideleftcenter olc 20` | `centerleft cl 4` | `center c 5` | `centerright cr 6` | `outsiderightcenter orc 14`
`outsideleftbottom olb 19` | `bottomleft bl 7` | `bottomcenter bc 8` | `bottomright br 9` | `outsiderightbottom orb 15`
| `outsidebottomleft obl 18` | `outsidebottomcenter obc 17` | `outsidebottomright obr 16` |

`COLOR`

This can be a hexadecimal color definition in the format RGB, ARGB, RRGGBB or AARRGGBB where R is red, G is green, B is blue and A is alpha.

There are also named colors which can be used: black, white, red, green, blue, orange, yellow, magenta, cyan, aluminum, aqua, asparagus, banana, blueberry, bubblegum, cantaloupe, carnation, cayenne, clover, eggplant, fern, flora, grape, honeydew, ice, iron, lavender, lead, lemon, licorice, lime, magnesium, maraschino, maroon, mercury, midnight, mocha, moss, nickel, ocean, orchid, plum, salmon, seafoam, silver, sky, snow, spindrift, spring, steel, strawberry, tangerine, teal, tin, tungsten, turquoise

The Plot default colors can be addressed with the numbers 0-15