Multiple colors in text box

MortimerGillespie shared this idea 8 years ago
Answered

Hello

I just found this thread.

I have put together a file (attached) and I want the gradient value in the equation of the tangent line to be a different colour (say, purple), and I also want the y-coordinate of point A to show up in that same other colour - thus emphasising the fact that the exponential function graph has a gradient given by the y-coordinate everywhere on the graph.

I have tried "breaking up" the textboxes by creating other variables, x(A) and y(A), as well as creating a point B, the intersecion of the tangent line with the y-axis, and then defining the variable y(B). Then I have used the latex commands I have found helpful from these posts. The annoying thing is that I cannot get away from the tangent line appearing as y = (m)x + - (y(B)) when the y-intercept is negative. You'll see this in the second file I have uploaded.

Any ideas?

Thanks!

M

https://ggbm.at/791889

https://ggbm.at/791893

Comments (3)

photo
1

Hi,


Solutions to the negative values here http://forum.geogebra.org/v...


Simon

photo
1

Aha! Very nice Simon. Thank you. I'll look into that approach. I was contemplating having different texboxes that appeared on conditions laid down by the sign of y(B) but this is cooler and more powerful for further creativity in other files and teaching ideas I have brewing.

Cheers!

M

photo
1

Another way to link separately coloured text boxes.


In the Position tab of the properties for the second text use something like (for 12pt font)

    Corner[text1, 2] + (0.1, 0.18)

If you also select fix object for the second text it cannot be dragged independently of the first.


Examples of LaTeX and non-LaTeX attached


Simon


Edit: This method also works in HTML5

https://ggbm.at/791923

© 2023 International GeoGebra Institute