Text Command
- Text( <Object> )
-
Creates a text containing the formula of the given object.
If a = 2 and c = a2, then Text(c)
creates the text "4".
By default, values are substituted to the corresponding variables. |
- Text( <Object>, <Boolean for Substitution of Variables> )
-
Creates a text containing the formula of the given object. The Boolean variable determines whether values are substituted to variables (true) or variable names are shown in the text (false).
If a = 2 and c = a2, then
-
Text(c, true)
creates the text "4" and -
Text(c, false)
creates the text "a2".
- Text( <Object>, <Point> )
-
Creates a text containing the formula of the given object at the given position (point).
Text("hello", (2, 3))
creates the text "hello" at (2, 3).
- Text( <Object>, <Point>, <Boolean for Substitution of Variables> )
-
Creates a text containing the formula of the given object at the given position (point). The Boolean variable determines whether values are substituted to variables (true) or variable names are shown in the text (false).
If a = 2 and c = a2, then Text(c, (2, 1), true)
creates the text "4" at (2, 1).
- Text( <Object>, <Point>, <Boolean for Substitution of Variables>, <Boolean for LaTeX formula> )
-
Creates a text containing the formula of the given object at the given position (point). The first Boolean variable determines whether values are substituted to variables (true) or variable names are shown in the text (false). If the second Boolean variable is true, the text is rendered using LaTeX.
If a = 2 and c = a2, then Text(c, (2, 1), true, true)
creates the LaTeX text "4" at (2, 1).
- Text( <Object>, <Point>, <Boolean for Substitution of Variables>, <Boolean for LaTeX formula>, <Horizontal alignment [-1|0|1]>, <Vertical alignment [-1|0|1]> )
-
Creates a text containing the formula of the given object at the given position (point). The first Boolean variable determines whether values are substituted to variables (true) or variable names are shown in the text (false). If the second Boolean variable is true, the text is rendered using LaTeX. The values -1, 0, 1 define the horizontal and vertical alignment, shifting the text from the default position respectively as follows:
-
-1: horizontal shift leftwards / vertical shift downwards
-
0: centers the text object horizontally / vertically at the given point
-
1: horizontal shift rightwards / vertical shift upwards
-
If a = 2 and c = a2, then Text(c, (2, 1), true, true, -1, 0)
creates the LaTeX text "4" to the left of
(2, 1), and vertically aligned with the point.
See also Text tool. |