Inserting dynamic text

How to insert dynamic text
Dynamic text contains an element that refers to one of the objects used in the construction. Thus, the text adapts to changes of the object (e.g. new coordinates, area).[br][br][table][tr][td]1.[/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/td][td]Select the [i]Text [/i]tool and click in the  [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i].[/td][/tr][tr][td]2.[/td][td][/td][td]Enter [code]area =[/code] into the text field.[br][b]Hint:[/b] This will be the static part of your text.[/td][/tr][tr][td]3.[/td][td][/td][td]Click on [i]Advanced[/i] and select tab [img]https://wiki.geogebra.org/uploads/thumb/4/4e/Geogebra-logo-elipse.svg/16px-Geogebra-logo-elipse.svg.png[/img] [i]Objects[/i]. From the list of available objects, select [i]poly1[/i].[br][b]Hint:[/b] This will insert the value of [i]poly1[/i] (which is the area of the square) into your text. As the dynamic part, this value will change if the construction is modified.[br][/td][/tr][tr][td]4.[/td][td][/td][td]Click OK when you are done.[/td][/tr][tr][td]5.[/td][td][icon]https://www.geogebra.org/images/ggb/toolbar/mode_move.png[/icon][/td][td]Move the text to the desired position and [img]https://www.geogebra.org/wiki/uploads/thumb/9/92/Stylingbar_object_unfixed.svg/16px-Stylingbar_object_unfixed.svg.png[/img] fix it using the [img]https://www.geogebra.org/wiki/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[br][/td][/tr][tr][td]6.[/td][td][img width=32,height=32]https://wiki.geogebra.org/uploads/thumb/3/30/Menu-options.svg/32px-Menu-options.svg.png[/img][/td][td]You can edit the text using tab [i]Text [/i]in the [i]Settings[/i]. For example, you could add [code]cm²[/code] to the right of the [i]poly1[/i] box. Click OK[i] [/i]when you are done.[br][b]Hint:[/b] This will be another static part of your text.[br][/td][/tr][/table]
Try it yourself...
Enhancement with dynamic text
Enhance the interactive figure below by inserting dynamic text below the sliders that display the corresponding addition problem [i]a + b = r[/i]. [br]To display the parts of the addition problem in colors that match the sliders and answer of the problem, you need to insert the dynamic text step by step.
Instructions
[table][tr][td][size=100]1.[/size][/td][td][icon]https://wiki.geogebra.org/uploads/thumb/4/40/Menu_view_algebra.svg/120px-Menu_view_algebra.svg.png[/icon][/td][td][size=100]Calculate the result of the addition problem: [code]r = a + b[/code][/size][/td][/tr][tr][td][size=100]2.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/size][/td][td][size=100]Insert dynamic [i]text1[/i]: [code]a[/code][/size][/td][/tr][tr][td][size=100]3.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/size][/td][td][size=100]Insert static [i]text2[/i]: [code]+[/code][/size][/td][/tr][tr][td][size=100]4.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/size][/td][td][size=100]Insert dynamic [i]text3[/i]: [code]b[/code][/size][/td][/tr][tr][td][size=100]5.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/size][/td][td][size=100]Insert static [i]text4[/i]: [code]=[/code][/size][/td][/tr][tr][td][size=100]6.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_text.png[/icon][/size][/td][td][size=100]Insert dynamic [i]text5[/i]: [code]r[/code][/size][/td][/tr][tr][td][size=100]7.[/size][/td][td][img]https://wiki.geogebra.org/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/32px-Stylingbar_icon_graphics.svg.png[/img][br][/td][td][size=100]Match the color of [i]text1[/i], [i]text3[/i] and [i]text5[/i] with the color of the corresponding sliders, vectors and point [i]R[/i] using the [i]Style Bar[/i].[/size][/td][/tr][tr][td][size=100]8.[/size][/td][td][size=100][icon]https://www.geogebra.org/images/ggb/toolbar/mode_move.png[/icon][/size][/td][td][size=100]Line up the text in the [img]https://wiki.geogebra.org/uploads/thumb/c/c8/Menu_view_graphics.svg/16px-Menu_view_graphics.svg.png[/img] [i]Graphics View[/i].[br][b]Hint:[/b] You might want to display a [img]https://wiki.geogebra.org/uploads/thumb/f/f1/Stylingbar_graphicsview_show_or_hide_the_grid.svg/16px-Stylingbar_graphicsview_show_or_hide_the_grid.svg.png[/img] grid to help you align the text elements.[br][/size][/td][/tr][tr][td][size=100]9.[/size][/td][td][size=100][icon]https://wiki.geogebra.org/uploads/thumb/0/05/Stylingbar_object_fixed.svg/32px-Stylingbar_object_fixed.svg.png[/icon][/size][br][/td][td][size=100]Open the [i]Settings[/i] of the text elements and fix them, so they cannot be moved accidentally.[br][/size][/td][/tr][tr][td][size=100]10.[/size][/td][td][icon]/images/ggb/toolbar/mode_showhideobject.png[/icon][br][/td][td][size=100]Hide the labels of the sliders using the [img]https://wiki.geogebra.org/uploads/thumb/d/db/Stylingbar_icon_graphics.svg/16px-Stylingbar_icon_graphics.svg.png[/img] [i]Style Bar[/i].[/size][br][/td][/tr][/table]
Try it yourself...

Information: Inserting dynamic text