Difference between revisions of "FormulaText Command"
From GeoGebra Manual
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact ) |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version=4. | + | <noinclude>{{Manual Page|version=4.2}}</noinclude> |
{{command|text}} | {{command|text}} | ||
; FormulaText[Object]: Returns the formula for the object as a LaTeX text. | ; FormulaText[Object]: Returns the formula for the object as a LaTeX text. |
Revision as of 22:11, 9 March 2013
- FormulaText[Object]
- Returns the formula for the object as a LaTeX text.
- Note: By default, values are substituted for variables.
- Example: If a = 2 and f(x) = a x2, then
FormulaText[f]
returns 2 x2 (as a LaTeX text).
- FormulaText[Object, Boolean]
- Returns the formula for the object as LaTeX text. 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 f(x) = a x2, then
FormulaText[f, true]
returns 2 x2 (as a LaTeX text) andFormulaText[f, false]
returns a x2 (as a LaTeX text).
- FormulaText[Object, Boolean for Substitution of Variables, Boolean Show Name]
- Returns the formula for the object as LaTeX text. The first Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false), the second Boolean variable determines if the object name is shown in the text (true) or not (false).
- Example: If a = 2 and f(x) = a x2, then
FormulaText[f, true, true]
returns f(x)=2 x2 (as a LaTeX text) andFormulaText[f, false, false]
returns a x2 (as a LaTeX text).