Difference between revisions of "RotateText Command"

From GeoGebra Manual
Jump to: navigation, search
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 )
(added example to place the rotated text at a point)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|text}}
{{command|text}}
+
;RotateText( <Text>, <Angle> )
;RotateText[ <Text>, <Angle> ]
 
 
:Returns text rotated by given angle. [[LaTeX]] is used for rendering of the result.
 
:Returns text rotated by given angle. [[LaTeX]] is used for rendering of the result.
{{Note|1=The text needs to be enclosed in double quotes <code> " </code>.}}
+
:{{Example|1=<code><nowiki>RotateText("a = 5", 45°)</nowiki></code>}}
 +
 
 +
 
 +
{{Notes|1=
 +
* The text needs to be enclosed in double quotes <code>"</code>.
 +
* The text is rotated around the top left corner (also known as corner 4) of the box containing the text, and placed at the origin of the coordinate system.
 +
:  {{Example|1=If you want to place the text "GeoGebra", rotated by 42°, at point (6,6), use the command <code>Text(RotateText("GeoGebra", 42°), (6, 6),true,true)</code> }}
 +
* The angle is in radians unless you explicitly use the degree symbol <code>°</code>.}}

Latest revision as of 11:55, 7 February 2019


RotateText( <Text>, <Angle> )
Returns text rotated by given angle. LaTeX is used for rendering of the result.
Example: RotateText("a = 5", 45°)


Notes:
  • The text needs to be enclosed in double quotes ".
  • The text is rotated around the top left corner (also known as corner 4) of the box containing the text, and placed at the origin of the coordinate system.
Example: If you want to place the text "GeoGebra", rotated by 42°, at point (6,6), use the command Text(RotateText("GeoGebra", 42°), (6, 6),true,true)
  • The angle is in radians unless you explicitly use the degree symbol °.
© 2024 International GeoGebra Institute