Equation superscript and subscript
Options can be an object, or an array in the property order below
To test examples, append them to the boilerplate
// Simplefigure.add({ make: 'equation', forms: { 1: { supSub: ['x', 'b', 'a'] }, },}); Copy
// Simplefigure.add({ make: 'equation', forms: { 1: { supSub: ['x', 'b', 'a'] }, },});
// Example showing different super-sub script optionsfigure.add({ name: 'eqn', make: 'equation', forms: { // Object form 1: { supSub: { content: 'x', superscript: 'b', subscript: 'a', }, }, // Array form 2: [{ supSub: ['x', 'b', 'a'] }, ' ', { supSub: ['x_1', 'c', 'a_1'] }], 3: { supSub: ['x', ['b', ' ', '+', ' ', 'c'], 'a'] }, }, formSeries: ['1', '2', '3'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();@interface Copy
// Example showing different super-sub script optionsfigure.add({ name: 'eqn', make: 'equation', forms: { // Object form 1: { supSub: { content: 'x', superscript: 'b', subscript: 'a', }, }, // Array form 2: [{ supSub: ['x', 'b', 'a'] }, ' ', { supSub: ['x_1', 'c', 'a_1'] }], 3: { supSub: ['x', ['b', ' ', '+', ' ', 'c'], 'a'] }, }, formSeries: ['1', '2', '3'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();@interface
Equation superscript and subscript
Options can be an object, or an array in the property order below
See
To test examples, append them to the boilerplate
Example
Example