Difference between revisions of "Text Command"

From GeoGebra Manual
Jump to: navigation, search
(added link to Insert Text tool)
m
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
{{command|text}}
 
{{command|text}}
 
; Text[ <Object> ]
 
; Text[ <Object> ]

Revision as of 14:14, 28 July 2015



Text[ <Object> ]
Returns the formula for the object as a text object.
Note: By default, values are substituted for variables.
Example: If a = 2 and c = a2, then Text[c] returns the text "4".
Text[ <Object>, <Boolean for Substitution of Variables> ]
Returns the formula for the object as a text object. The Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false).
Example:
If a = 2 and c = a2, then
  • Text[c, true] returns the text "4" and
  • Text[c, false] returns the text "a2".
Text[ <Object>, <Point> ]
Returns the formula for the object as a text object at the position of the given point.
Example: Text["hello", (2, 3)] returns the text hello at the position (2, 3).
Text[ <Object>, <Point>, <Boolean for Substitution of Variables> ]
Returns the formula for the object as a text object at the position of the given point. The Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false).
Example: If a = 2 and c = a2, then Text[c, (2, 1), true] returns the text "4" at the position (2, 1).
Text[ <Object>, <Point>, <Boolean for Substitution of Variables>, <Boolean for LaTeX formula> ]
Returns the formula for the object as a text object at the position of the given point. First Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false). If the second Boolean variable is true, the result is rendered using LaTeX.
Example: If a = 2 and c = a2, then Text[c, (2, 1), true, true] returns the text "4" at the position (2, 1) using LaTeX.
Note: See also Tool Insert Text.gif Insert Text tool.
© 2024 International GeoGebra Institute