The optional design variable allows alteration to the layout and order of toolbar panels
The following example uses the mini toolbar:
<div id="toolbar"></div>
<div id="input"></div>
<script>
var tb = new EqEditor.Toolbar('toolbar','mini');
tb.addTextArea(new EqEditor.TextArea('input'), true);
</script>
Alternatively you can provide a JASON array of the panels you want on each row of the toolbar:
<div id="toolbar"></div>
<div id="input"></div>
<script>
var tb = new EqEditor.Toolbar('toolbar', [["operators_core","greeklower","chemistry_arrows",
"mhchem","mhchem_arrows","colors"]]);
...
</script>
The following preset toolbar collections include:
Name | Panels on each row |
---|---|
"full" | style | spaces | binary | symbols | foreign | subsupset | accents | accents_ext | arrows |
operators | brackets | greeklower | greekupper | relations | matrix | colors | |
"mini" | operators_core | brackets | greeklower | arrows | matrix | colors |
"chemistry" | operators | brackets |symbols | arrows | chemistry_arrows | mhchem | mhchem_arrows | matrix | color |
The available standard panels include:
Panel Name | Description |
---|---|
"brackets" | Brackets and groups |
"matrix" | Matrix and Vectors |
"binary" | Binary Operators and Symbols |
"subsupset" | Super and sub setting |
"relations" | Set releations |
"arrows" | Arrows |
"style" | Styling |
"foreign" | None ASCII letters |
"symbols" | Symbols |
"spaces" | Forces spacing between letters |
"accents" | Common letter accents |
"accents_ext" | Extended set of letter accents |
"greeklower" | Lowercase greek letters |
"greekupper" | Upper case greek letters |
"operators" | Full set of supported operators, include \sum and \prod |
"operators_core" | Most commonly used operators, such as \sum |
"chemistry_letters" | Chemical Letters |
"chemistry_arrows" | Chemical Equation arrows |
"colors" | Foreground colors |
"mhchem" | Commands for typesetting chemical molecular formulae |
"mhchem_arrows" | Commands for typesetting chemical arrows |
This list forms the current base set. Any other panels can be constructed quickly, so please submit the LaTeX behind panel you would like to see and we can add this to the list.