Correct command produces an error within a script.

Mat4U shared this problem 4 years ago
Not a Problem

SetzeBeschriftung(A,Wenn(blue,"$\sf \textcolor{blue}{\scalebox{"+Text(scl)+"}

{"+Text(b)+"}}$","$\sf \textcolor{black}{\scalebox{"+Text(scl)+"}{"+Text(b)+"}}$"))


The variables "blue" and "scl" should change attributes

of the label of Point A.

Further, "b" is the content of the label of A.

This command works well, when using the input line,

but produces an error when the command is in the script of the variable "blue" or "scl".

Comments (3)

photo
1

Das ist eigentlich ganz einfach - Du hast einen Zeilenumbruch in beiden Scriptteilen..

Mal einen Vorschalg


SetCaption(A, "$\sf  \textcolor{"+color(blue+1)+"}{\scalebox{"+Text(scl)+"}{"+Text(b)+"}}$"  )
Setzt color = {"black", "blue"} voraus

photo
1

I think the script must have only one line not two lines

/qE5v8D6URSJBoly64AAAAASUVORK5CYII=

photo
1

Vielen Dank. das liegt am Editor, den ich benutze - man muss wirklich alles noch einmal kontrollieren.

Danke für die prompte Antwort, Euch Beiden!

Gruß Matthias Hornof

© 2023 International GeoGebra Institute