Google Classroom
GeoGebraGeoGebra Classroom

Copy of rami's Auto Caption Instructions

LiCapt is a list of style sets which are place in dropdown: {<style name>,<LaTex instruction set>} (LiCapt = {{"large, name, value", "$ \large{\textsf{ %n=%v}}{{SSR}}quot;}, {"large, name", "$ \large{\textsf{ %n}}{{SSR}}quot;}, {"large bold, Name", "$ \large{\textsf{\textbf{ %n}}}{{SSR}}quot;}}) LiCaptSel = Zip[Element[L, 1], L, LiCapt] (captionTemplate = Element[LiCapt, SelectedIndex[LiCaptSel], 2])
This is entered into the Global JavaScript tab under Object Properties for any item in Algebra list function ggbOnInit() { ggbApplet.registerAddListener("AddCaption"); } function AddCaption(obj){ var tmpl= ggbApplet.getValueString("captionTemplate") OK=ggbApplet.evalCommand('SetCaption['+obj+',"'+tmpl+'"]') } Forum Source rami's attachment