4.2.11 Variables in the TeXgraph.mac and interface.mac files

Those files are automatically loaded at program startup (with color.mac and scene3d.mac). Its content is considered predefined, not displayed on the screen, not saved with the graphics and is present in the memory until the program is closed.

Here are the main variables (the variables used as options in some macros are not cited):

• stock, stock1 to stock5 (=Nil): storage variables.
• mm (=Ent(7227/254)): integer tenth of points (of TeX) corresponding to 1 millimeter. Useful for the lines thickness given in integer tenth of points. For example : Width:=1.5*mm will give 1.5 mm thickness.
• backcolor (=white): the background color, updated with the macro Helprefbackgroundmacbackground, and used in some exports.
• deg (=pi/180): degrees towards radians conversion, for example: alpha:=40*deg.
• tailleB (=145+i*30): button length and height (pixels).
• DeltaB (=32*i): difference between two buttons + button’s height.
• RefPoint (=2+5*i): reference point for the first button.
• NbBoutons (=0): button counter.
• Xfact (=1.1) and Yfact (=1.1): variables used for zooms (+ and - buttons in the toolbar).
• usecomma (=0): this variable is handled by the macro GradDroite. When its value is $1$, the point is replaced with a comma in the numerical displays for the graduations. The replacement itself is made by the macro StrNum.
• numericFormat (=0): this variable is handled by the macro StrNum. It shows if numbers have to be displayed using default format (value $0$), or scientific format (value $1$) or engineer format (value $2$).
• nbdeci (=2): number of decimal places in the numerical displays. That variable is handled by the macro StrNum, itself used by the macro GradDroite.
• maxGrad (=100): this variable is handled by the macro GradDroite, and shows the maximal number of graduations.