Equation bracket
Surround an equation phrase with brackets.
Symbols that can be used with bracket are:
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', elements: { lb: { symbol: 'bracket', side: 'left' }, rb: { symbol: 'bracket', side: 'right' }, }, forms: { 1: ['a', { brac: ['lb', ['b', '_ + ', 'c'], 'rb'] }], },}); Copy
// Simplefigure.add({ make: 'equation', elements: { lb: { symbol: 'bracket', side: 'left' }, rb: { symbol: 'bracket', side: 'right' }, }, forms: { 1: ['a', { brac: ['lb', ['b', '_ + ', 'c'], 'rb'] }], },});
// Some different bracket examplesfigure.add({ name: 'eqn', make: 'equation', elements: { lb: { symbol: 'bracket', side: 'left' }, rb: { symbol: 'bracket', side: 'right' }, lsb: { symbol: 'squareBracket', side: 'left' }, rsb: { symbol: 'squareBracket', side: 'right' }, leftBrace: { } }, forms: { // Array definition 1: ['a', { brac: ['lb', ['b', '_ + ', 'c'], 'rb'] }], // Object definition 2: ['a', { brac: { left: 'lb', content: { frac: ['b', 'vinculum', 'c'] }, right: 'rb', }, }], // Square brackets 3: ['a', { brac: ['lsb', ['b', '_ + ', 'c'], 'rsb'] }], }, formSeries: ['1', '2', '3']});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();@interface Copy
// Some different bracket examplesfigure.add({ name: 'eqn', make: 'equation', elements: { lb: { symbol: 'bracket', side: 'left' }, rb: { symbol: 'bracket', side: 'right' }, lsb: { symbol: 'squareBracket', side: 'left' }, rsb: { symbol: 'squareBracket', side: 'right' }, leftBrace: { } }, forms: { // Array definition 1: ['a', { brac: ['lb', ['b', '_ + ', 'c'], 'rb'] }], // Object definition 2: ['a', { brac: { left: 'lb', content: { frac: ['b', 'vinculum', 'c'] }, right: 'rb', }, }], // Square brackets 3: ['a', { brac: ['lsb', ['b', '_ + ', 'c'], 'rsb'] }], }, formSeries: ['1', '2', '3']});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();@interface
Equation bracket
Surround an equation phrase with brackets.
Symbols that can be used with bracket are:
Options can be an object, or an array in the property order below
See
To test examples, append them to the boilerplate
Example
Example