Skip to content
In development: Molkit Script and the AI chat are not available to accounts yet. These pages describe work in progress and may change.

Command reference

Every Molkit Script command, with its argument, its options, and what it makes. The language itself (names, lists, sets, recipes, running) is in the language. In the console, help and help <command> show the same text.

  • draw: Draw a molecule or ion: by its name in the species table, by a formula one table species has, from PubChem by name, or from SMILES.
  • reaction: Draw the structures of an equation written in plain LaTeX (or \ce{} with mhchem): in a row with plus signs and the arrow, or under an equation written earlier.
  • derive: Make other views of a molecule (the original stays).
  • resonance: Make the resonance forms of a molecule or ion (its own forms, its minor charge-separated ones, or the octet-obeying forms of an expanded octet): the molecule is form 1, the others in a row to its right with arrows.
  • write: Write text or a LaTeX equation ($…$, or \ce{} with mhchem) on the canvas; without a placement it goes in a new row under everything. Tags in quoted text ( ) format part of it.
  • config: Draw the electron configuration of an atom or a monatomic ion as a figure: orbital boxes with half-arrows on the energy ladder (or in a line, or the notation alone), the core shaded or collapsed, the written configuration and its notes (exceptions, ions, magnetism). The same figure as Insert > Electron Configuration; double-click it to change it.
  • angle: Mark a bond angle on a molecule: a double-headed arc between two bonds of an atom and its label (109.5°, < 120°), moving with the molecule.
  • hybrid: Draw the valence-bond orbital boxes of a drawn molecule: ground, excited, hybridized (sp to sp3d2), electrons colored by bond.
  • scene: A named VSEPR / VBT teaching picture: domain lobes, wire polyhedra, orbital overlaps.
  • hybrid-orbitals: Hybrid orbitals on xyz axes, from the orbitals that mix.
  • lattice: Draw a textbook cubic lattice as a figure: sc, bcc, fcc or nacl (rock salt), as the unit cell with each atom shaded by where it sits and the counting written out (8 x 1/8 + 6 x 1/2 = 4), or as its (100) layer. A picture: crystal NaCl draws editable atoms. The same figure as Insert > Lattice.
  • crystal: A library crystal’s unit cell, its atoms editable (19 built in: NaCl, CsCl, ZnS, wurtzite, CaF2, TiO2, SrTiO3, Cu, Al, Fe, Na, Mg, Zn, Po, diamond, graphite, quartz, ice, I2; a crystal file opens with File > Open). Its face, edge and corner atoms are drawn on every equivalent place, ionic charges shown. A name not in the library is looked up in the Crystallography Open Database (crystal halite), its best entry drawn; cod: draws one entry by its number.
  • mo: Draw a molecular orbital diagram: of a diatomic molecule or ion (H2 to Ne2 and their ions, by the textbook rules, with the bond order and the magnetism), or the simple Hückel pi levels of a conjugated hydrocarbon (named, or a drawn molecule by its name). The same figures as Insert > MO Diagram and Insert > Hückel Diagram; double-click one to change it.
  • orbital-picture: Build an orbital picture of a molecule, on a copy as Derive View > Orbital Picture does (the original stays).
  • change: Change an object, a set, or a part (an atom, a bond): its color, words, or chemistry; a set’s opening view; an animation’s timing, a pane’s title, a change’s time (sn2.change1).
  • show: Show a display feature: lone pairs, atom numbers, stereo labels (R/S, E/Z), implicit hydrogens, dipole arrows, aromatic circles, NMR signal letters; on a 3D view, hydrogens, a vibration, the ESP map, a surface or the hybrid orbitals.
  • hide: Hide a display feature (the same features as show).
  • arrow: Draw an arrow between two objects (between their facing edges), labeled above or below; or, between parts, a curved mechanism arrow from a lone pair or bond to an atom or bond.
  • straighten: Put bonds that are slightly off a multiple of 15° exactly on that angle, as Structure > Straighten Bonds does (whole molecules only).
  • cleanup: Tidy a drawing as Structure > Clean Up does: even bond lengths, 120° zig-zags and branch points, straight sp centers, overlapping atoms pushed apart. Only the molecules named (or all). A condensed, Fischer, or VSEPR view is left as it is, and the result says so.
  • rotate: Turn an object, a set, or a list about its center, as the Rotate tool does (attached arrows follow).
  • flip: Mirror an object, a set, or a list about its center, as Flip Horizontal and Flip Vertical do (wedges and labels follow).
  • save: Save the whole document as an .mkit file, as File > Save writes it; the file is ready to save when the run succeeds.
  • scale: Resize an object, a set, or a list about its center, as Resize Selection does: its bonds grow or shrink; its texts and marks move with it.
  • preset: Set the document’s structure preset, as Structure Settings does (bond length, fonts, line widths). The drawing is resized to the new bond length, and objects with their own sizes scale with it; the script never stops to ask.
  • colors: Set the document’s element color scheme, as Structure Settings does, and the color of single elements on top of it.
  • place: Move an object or a set to a point, or below, above, left of, or right of another object (a gap apart).
  • align: Line up the edges (or centers) of objects and sets on the matching edge (or center) of the whole group.
  • distribute: Make the gaps between three or more objects equal (the outer two stay where they are).
  • rename: Give an object a new name (its title follows when the title came from the old name).
  • expand: Draw a group label out as its atoms: an atom with a label (expand toluene.C1: its “COOH” becomes C, O, O, and H), or every group label of a molecule (expand toluene). A collapsed group gets its own atoms back. Part names are numbered again.
  • isomers: List every stereoisomer of a molecule and draw them. A captioned grid goes below everything, as Structure > Stereoisomers draws it: descriptors, meso and achiral forms, enantiomers side by side.
  • contract: Collapse groups into labels: every common group of a molecule (Boc, TBS, Ph: three or more heavy atoms), or the atoms listed under label:.
  • check: List the structure warnings (valence, charge) and layout warnings (overlaps, past the margin) for objects, or for every molecule. Changes nothing.
  • compare: Say how two molecules are related: identical, conformers, enantiomers, diastereomers, constitutional isomers, or not isomers. Changes nothing.
  • mirror: Draw the mirror image beside a molecule. A dashed mirror line goes between them, as Structure > Draw Mirror Image draws it: R and S swap, E and Z stay.
  • fill: Color in rings. Fills lie under the bonds, as Right-click > Fill Ring makes them: one ring (fill benzene.ring(C1); ring(C1, C2) when C1 is in two), its fused system (extent: system), or every ring of a molecule (fill naphthalene; rings: aromatic for the aromatic ones). Each fill is named fill-1, fill-2, … and follows its ring; change fill-1 and delete fill-1 reach it.
  • delete: Delete objects: a name, a list of names, a set or a group (its members stay), all, or all.sets (every set; the members stay); or a part: an atom (with its bonds), a bond, or a lone pair.
  • page: Set the document’s paper size, orientation, margins, guides, and paged or infinite mode, as File > Page Setup does.
  • document: Set the document title, author, description, and notes, as File > Document metadata does (an SVG export of All Content uses the description for screen readers; a PDF export, the title and description).
  • settings: Set Structure Settings rows for the document, as the Structure Settings dialog does: bond lines, lone pairs, radicals, charges, the label font.
  • shape: Draw a Shape tool shape around objects or at a place: an ellipse, a star, a callout, a cube, with its fill and line.
  • projection: Draw a Fischer, Newman, Haworth, chair, or boat projection, as the Projection tool does; a Newman can look down a bond of a drawn molecule.
  • chart: Put a computed result’s chart on the canvas, as a result window’s Insert into drawing does: a molecule’s IR spectrum, a mechanism animation’s energy profile, or a crystal’s powder pattern.
  • scan: Scan the energy along one coordinate of a 3D view (a distance, an angle, or a dihedral), as the 3D viewer’s Energy scan does, and put the chart on the canvas.
  • bind: Make objects move together, as Edit > Group does (group is the export group).
  • unbind: Undo a bind: the objects move on their own again, as Edit > Ungroup does.
  • mark: Put a lone pair, a radical, or a charge on the canvas on its own, on no atom, as those tools do on an empty spot.
  • orbital: Put one orbital on an atom, as the Orbital tool does: s, p, a d orbital, or an sp, sp2, or sp3 hybrid, at an angle; half: on draws one lobe.
  • overlap: Draw an orbital overlap on a bond, as the Orbital tool does: the pi cloud above and below it, the pi* antibonding overlap, or the sigma lens.
  • bracket: Put a bracket pair around objects, kept fitted, as Bracket Around Selection does; a polymer box, a charge or a dagger in its slots.
  • copy: Make a second one of a molecule, text, box or arrow, as Edit > Duplicate does: right of the original unless placed.
  • layer: Bring objects to the front or send them to the back, as right-click Bring to Front, Send to Back, Bring Forward and Send Backward do.
  • box: Box objects in a rectangle (as the Shape tool draws one, for a boxed answer or a group to point out).
  • animate: Make a structure animation: one pane per object, in order, framed where it is; an inner list is one pane holding several objects ([[a, b], c]); one object makes a one-pane animation that next-step or add can grow.
  • add: Add an atom (bonded to the one named) or a bond to a molecule; with into:, add an object to an animation as a new pane.
  • remove: Take an object out of a set, or its pane out of an animation; the object stays.
  • next-step: Add the next pane of an animation from a pane’s curved arrows (the toolbar’s Next Step): bonds formed and broken, lone pairs and charges moved, the arrows used up.
  • mechanism: Work out the mechanism from a pane of reactants and the pane of products after it. GFN2-xTB computes the reaction path, and Molkit draws the curved arrows it finds on the reactants; the log says concerted or stepwise, the intermediates, the barrier, the method and the medium. When the reactant pane already has curved arrows, it checks them instead: do they make the products drawn in the next pane, and does a path computed from them make and break the same bonds, in one step or several.
  • tour: Add a step to an animation’s guided tour (an image of its computed path, a caption, atoms to ring; played with the exported figure).
  • xrd: Powder X-ray pattern of a crystal, simulated: each family of planes (h k l) at the angle Bragg’s law gives for its spacing d, as strong as its structure factor (the X-ray scattering factors of its atoms, Waasmaier and Kirfel) and the Lorentz-polarization factor make it, the planes of one spacing added up. The log gives the strongest peaks; the pattern opens in its own window, where a click on a peak draws its plane in the cell. Changes nothing on the canvas.
  • esp: Compute a molecule’s ESP map (calc helper). As the 3D view’s ESP Calculate does: relaxed with GFN2-xTB (in water for an ion), then the potential from B3LYP/def2-SVP (OCC) on a grid round it. The map is kept for the molecule: its 3D view shows it, a save keeps it, an SVG export embeds it (export esp: inside or separate). With B3LYP or HF the same calculation’s dipole moment is kept with the map. Changes nothing on the canvas.
  • spectrum: Compute the IR spectrum of a drawn molecule, or its NMR signals (kind: 1h, 13c, dept-90, dept-135). IR, with GFN2-xTB: it is built in 3D and relaxed, its vibrations and their intensities computed, and each band named from what moves (O-H stretch, H-O-H bend); the log gives the strongest bands, the method, the medium and the limits, and the spectrum opens beside the 3D view, where a click on a band plays its vibration. NMR, from the structure alone (exact, no calculation, no shifts): the sets of equivalent H or C, the integration, the first-order splitting by the n+1 rule with the neighbors that cause it, the DEPT class and signs, exchangeable H; kept on the molecule and listed in a window of their own. Changes nothing on the canvas.
  • duplicate: Copy an animation beside it: its panes, with copies of their molecules, its matches and timing.
  • arrange: Line up objects in a row or a column, in list order; a set moves as one block; an animation’s name lays out its panes.
  • export: Export objects or sets as SVG or PNG files (an SVG is made the way Batch Export makes it), MOL or SMILES files, or an animation as an animated SVG; the files are ready to save when the run succeeds.
  • group: Name several objects or sets as one export. set “G” may name another group: its members join.
  • select: Select objects or parts and leave them selected after the run. You can go on with the mouse. Parts: water.O, water.bond(O, H1), water.O.lone-pair1.
  • describe: List the named objects: names, titles, formulas, views, sets, and positions; animations too. An animation’s name: its panes and changes. With as: script, write the canvas as a script.
  • explain: Show how Molkit reads a command line: what each name means, every option with its value or default, and what the line would make. Changes nothing.
  • help: Show the commands, or one command’s options with their values and defaults.

Draw a molecule or ion: by its name in the species table, by a formula one table species has, from PubChem by name, or from SMILES.

draw <species> [options]

Argument (required): the species to draw: a name from the species table, a formula one table species has (H2O), or any other name, which is looked up in PubChem; with a smiles: option, any name you give it.

Option Takes Default
view: lewis, bondline lewis for a species with a formal charge (an ion, a zwitterion, a nitro group), for one with at most 2 heavy atoms, and for a molecule with no carbon; otherwise bondline, and bondline for a charged species whose SMILES gives a configuration (@)
name: a name the species name (water)
title: a word or “quoted text” from the species table
layout: angled, square angled; square for one central atom with four terminal atoms (sulfate, ammonium, CCl4)
into: set “Name”
if-exists: error, reuse error
smiles: a word or “quoted text”
octet: obey, expand none for a species with two depictions (sulfate, sulfite, phosphate, perchlorate, sulfur-dioxide, sulfur-trioxide: E-OCTET without it); otherwise as the species table or SMILES gives it
form: major, as-given major
charge: auto, bracket, atom, both auto
repeats: count, each count
carbon-labels: auto, on, off auto
coords: a list of points [(0, 0), (0.87, -0.5)]
caption: a word or “quoted text”
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • layout: needs view: lewis
  • coords: needs smiles:

Makes: a molecule; last is the molecule.

Example: draw water

Takes: lewis, bondline. Default: lewis for a species with a formal charge (an ion, a zwitterion, a nitro group), for one with at most 2 heavy atoms, and for a molecule with no carbon; otherwise bondline, and bondline for a charged species whose SMILES gives a configuration (@).

The view to draw.

Recommendation: leave view: out unless you want a particular drawing: draw picks Lewis for ions, for species with up to two heavy atoms, and for molecules with no carbon (SF6, SO3), and bondline for the rest. For a VSEPR view, draw the Lewis structure and then derive it.

Example: draw ammonia and then derive ammonia views: [vsepr]

Takes: a name. Default: the species name (water).

The name a script uses for it.

Takes: a word or “quoted text”. Default: from the species table.

What it is called in words.

Takes: angled, square. Default: angled; square for one central atom with four terminal atoms (sulfate, ammonium, CCl4).

A Lewis view only: angled (zig-zag) or square (90° angles).

Recommendation: use angled, the zig-zag of textbook Lewis structures, for chains and most molecules. square suits one central atom with four terminal atoms, which is why those get it by default. Molkit refuses square where it cannot show the molecule the IUPAC way: a ring, an expanded octet, a stereocenter, or a C=C whose cis or trans configuration is given.

Example: draw ethanol view: lewis layout: square

Takes: error, reuse. Default: error.

When the name is taken: error stops with E-TAKEN; reuse keeps the existing object (into: still applies).

Takes: a word or “quoted text”.

Draws this SMILES instead of the species table entry; it always takes precedence.

Takes: obey, expand. Default: none for a species with two depictions (sulfate, sulfite, phosphate, perchlorate, sulfur-dioxide, sulfur-trioxide: E-OCTET without it); otherwise as the species table or SMILES gives it.

Obey: every atom within its octet, the charges where they fall (sulfate: S2+ and four O−; SO2: O=S+-O-). expand: a sulfur, phosphorus, chlorine, or heavier center takes more than eight electrons to bring the formal charges down (sulfate with two S=O, phosphate with one P=O). A species that cannot obey with its bonds (SF6) is an error.

Takes: major, as-given. Default: major.

Major: a charged species given by its SMILES is drawn as its major resonance form, whatever form its SMILES gives (ozone given as O+ at the end, a carboxylate given as C+ and two O−); a SMILES that is already a major form is kept as written, and so is a radical (where the unpaired electron sits is the choice of the SMILES or the table). A species-table entry is drawn as the table gives it, a species with two depictions follows octet:, and one of more than 20 heavy atoms is drawn as given. as-given: exactly the SMILES as written, a minor form too (to show one on purpose).

Takes: auto, bracket, atom, both. Default: auto.

How an ion’s charge is drawn. auto: square brackets around an ion whose charge is spread over it (a small inorganic ion, a carboxylate, an enolate); the charge on its atom when it sits on one atom of a larger structure (an alkoxide, a quaternary N+); always on the atoms when there are several separate charge centers. bracket: square brackets with the charge after the right bracket (IUPAC GR-5.7), in a bondline too, unless a charge sits on a bare carbon vertex; a one-atom ion with no lone pairs drawn is its letter and charge. atom: the charge on its atom; in a salt, each one-atom counter-ion sits beside the oppositely charged atom, with no bond drawn (IUPAC GR-7.2, paired). both: the bracket and each atom’s formal charge (N+ inside ammonium’s bracket).

Recommendation: keep auto. It follows IUPAC 2008 GR-5.7: a small inorganic ion such as sulfate is drawn in square brackets, and a charge that sits on one atom of a larger structure stays on that atom. Use bracket when every ion in a figure should look the same, and atom to show where a charge sits, for example in a mechanism.

Example: draw hydroxide charge: atom

Takes: count, each. Default: count.

A species of several pieces (a salt, a hydrate). count: a repeated ion or molecule is drawn once, with its count (IUPAC GR-7.3: CaCl2 as Ca2+ beside one chloride with a subscript 2). each: every copy is drawn.

Recommendation: keep count, which follows IUPAC GR-7.3 and keeps a salt compact: an ion that occurs more than once is drawn once, with its count. Use each when a figure should show every ion, for example to count the chloride ions in calcium chloride.

Example: draw calcium-chloride smiles: "[Ca+2].[Cl-].[Cl-]" repeats: each

Takes: auto, on, off. Default: auto.

Carbons written as C: auto (in a bondline drawing, one or two carbons, H2C=CH2; in a larger molecule a charged carbon is bare, its sign beside the vertex; in a Lewis drawing, every carbon), on (all), off (none; a charge sign stays beside its bare carbon). On and off work in both views.

Takes: a list of points [(0, 0), (0.87, -0.5)].

Where each atom goes: one point (x, y) per atom of the SMILES that is not hydrogen, in the order the SMILES writes them, in bond lengths from the first atom (so the first point is (0, 0)), y down as on the page. The molecule is drawn as these points give it, with no turn of its own; at: and the other placements still move it as a whole. With coords:, at: is the top-left corner of the box around the atom centers, not around their labels, so a label that is shown or hidden does not move the molecule. A SMILES written with its double bonds (C1=CC=CC=C1) keeps them where it writes them. Hydrogens and lone pairs are placed around the atoms by the usual rules, so they can come back in other places than they were drawn. When the drawing has hydrogens or lone pairs, Record and describe as: script add a note that says so. Record writes it for a molecule drawn by hand. describe as: script writes it for a molecule drawn by hand and for a named molecule whose atoms or bonds have changed since draw laid it out, such as a molecule from a recording or one with an atom moved. Not with a configuration (@) in the SMILES.

Takes: a word or “quoted text”.

Title, formula, name, or “text”: a text in the text size of the preset (12 pt under Compact, smaller under a journal preset with smaller atom labels) centered half a bond length under the object, which moves with it.

A caption moves with its drawing, so a later place or arrange keeps it underneath. title writes the species title (Water), formula its formula, name its name in the script, and quoted text your own words.

Example: draw water caption: formula

Draw the structures of an equation written in plain LaTeX (or \ce{} with mhchem): in a row with plus signs and the arrow, or under an equation written earlier.

reaction [<equation>] [options]

Argument (optional): the equation, in plain LaTeX such as $2~\mathrm{H_2} + \mathrm{O_2} \longrightarrow 2~\mathrm{H_2O}$, or \ce{...} if you use the mhchem package. Leave it out and use from: to draw an equation written earlier.

Option Takes Default
from: a name
view: lewis, bondline lewis
with: a list of pairs [[HA, acetic-acid]]
layout: inline, under-equation inline
gap: a length (2 bond, 12 pt) 1 bond
name: a name reaction-1, reaction-2, …
title: a word or “quoted text” reaction
charge: auto, bracket, atom, both auto
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • either an argument or from:, not both
  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, beside:, or layout: under-equation
  • layout: under-equation needs from:

Makes: one molecule per species (water; a species that appears a second time is water-product), the plus signs, the coefficients, and the arrow, named reaction-1 as a whole. No state symbols are drawn beside structures; they stay in a written equation. last is the reaction.

Example: reaction $\mathrm{CH_3COOH} + \mathrm{H_2O} \rightleftharpoons \mathrm{H_3O^+} + \mathrm{CH_3COO^-}$

Takes: a name.

An equation written earlier with write ($…$ name: eq, or last right after it), used instead of one on this line.

Takes: lewis, bondline. Default: lewis.

The view of every structure.

Takes: a list of pairs [[HA, acetic-acid]].

The species for a formula the species table does not know, or for one that several species share: with: [[HA, acetic-acid], [A-, acetate]].

Takes: inline, under-equation. Default: inline.

Inline: a row of structures; under-equation (with from:): each structure under its term.

Takes: a length (2 bond, 12 pt). Default: 1 bond.

With under-equation: the space between the equation and the structures; inline: the space to the object of a placement.

Takes: a name. Default: reaction-1, reaction-2, …

The name of the whole reaction (each species is named the way draw names it).

Takes: a word or “quoted text”. Default: reaction.

What it is called in words.

Takes: auto, bracket, atom, both. Default: auto.

How its ions are drawn, as for draw.

Make other views of a molecule (the original stays).

derive <name> [options]

Argument (required): a name (water).

Option Takes Default
views: all, lewis, vsepr, condensed, bondline, fischer, 3d, molecule all
solvent: drop, keep drop
layout: angled, square, both both
into: set “Name”
if-exists: error error
groups: condensed, explicit condensed
lone-pairs: auto, all, none the setting (Structure Settings > Lone Pairs > In VSEPR views, auto)

Option rules (Check and Run both apply them):

  • layout: needs views: lewis or all
  • groups: needs views: vsepr or all

Makes: a copy per view (water-vsepr, water-lewis-angled, …; the 3D view water-3d); last is the first copy.

Example: derive water

Takes: all, lewis, vsepr, condensed, bondline, fischer, 3d, molecule. Default: all.

The views to make; only views that apply and differ from the molecule’s own are made. 3d: a 3D view beside it, on its own line (never in all). molecule: a molecular crystal’s own molecules, one of each kind, drawn as plain molecules.

Takes: drop, keep. Default: drop.

Views: molecule of a crystal: leave out its solvent molecules (water, methanol…) or draw them too.

Takes: angled, square, both. Default: both.

The Lewis view: angled (zig-zag), square (90° angles), or both where they differ; a square view that would overlap itself is skipped with a note, unless you ask for square by name.

Takes: error. Default: error.

What happens when a name it would make is taken.

Takes: condensed, explicit. Default: condensed.

The VSEPR view: condensed draws terminal groups as labels (H3C, OH); explicit draws every atom, each center with its wedges.

Takes: auto, all, none. Default: the setting (Structure Settings > Lone Pairs > In VSEPR views, auto).

Lone pairs in the VSEPR view. auto: on atoms whose shape the view shows (an ether O, an amine N, a single central atom), none on a terminal OH, NH2, =O, or halogen. all: on every atom. none: no lone pairs.

Make the resonance forms of a molecule or ion (its own forms, its minor charge-separated ones, or the octet-obeying forms of an expanded octet): the molecule is form 1, the others in a row to its right with arrows.

resonance <name> [options]

Argument (required): a name (water).

Option Takes Default
kind: auto, pi, octet auto: its own forms where it has some, else its octet-obeying ones
octet: obey, expand
minor: on, off off; on when the molecule has no forms of equal standing
into: set “Name”
if-exists: error error

Makes: the other forms, named nitrate-form2, nitrate-form3, … (the original molecule is form 1 and also answers to nitrate-form1; octet-obeying forms of an expanded drawing, which it is not one of, are sf6-form1, sf6-form2, …), and the arrows between them, nitrate-arrow1, nitrate-arrow2, … in the order they stand, which place and delete take; last is form 2.

Example: resonance nitrate into: set "Nitrate"

Takes: auto, pi, octet. Default: auto: its own forms where it has some, else its octet-obeying ones.

Pi: the Lewis structures that stand with the drawing: the same atoms and bonds, electrons moved, no octet broken and no formal charge added (carbonate, benzene, azide, enolate, phenoxide, sulfate with two S=O). octet: the octet-obeying forms of a drawing with more than eight electrons on an atom; its bonds kept where they can be (SO2, SO3), else broken to ions (SF6, PF5, I3−: the no-bond, 3-center 4-electron forms); the drawing is not one of them: it heads one Visual Set with them, the expanded and the octet-obeying pictures kept apart.

Takes: obey, expand.

Which model the forms are drawn in, in place of kind:. obey: every atom within its octet (as kind: octet; a drawing that obeys it already gets its own forms). expand: an expanded center that brings the formal charges down (an octet-drawn sulfate gives the six forms with two S=O).

Takes: on, off. Default: off; on when the molecule has no forms of equal standing.

On: the minor forms too, each with one more pair of opposite charges and no atom short of its octet (aniline’s ortho and para forms, an amide’s O− with N+), weighted minor. A molecule with no forms of equal standing (an amide, an ester, pyrrole) gets its minor ones without asking; off refuses it instead. Not with octet: or kind: octet.

Takes: error. Default: error.

What happens when a form name is taken.

Write text or a LaTeX equation ($…$, or \ce{} with mhchem) on the canvas; without a placement it goes in a new row under everything. Tags in quoted text ( ) format part of it.

write <text> [options]

Argument (required): the text, in quotes ("Figure 1. Water."), or LaTeX in $...$ or \ce{...}.

Option Takes Default
size: a length (2 bond, 12 pt) (a number alone: pt) 12 pt (smaller under a preset with atom labels smaller than Compact, about 7.4 pt under Nature)
style: normal, italic, bold, bold-italic normal
align-text: left, center, right left
font: a word or “quoted text” “Arial”; LaTeX “STIX 2”
color: a color name or “#rrggbb” black
name: a name text-1, text-2, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • with LaTeX text, font: takes “stix 2”, “stix2”, “stix”, “computer modern”, or “cm” (any case)
  • style: only with plain “quoted” text (not \ce{…} or $…$)
  • align-text: only with plain “quoted” text (not \ce{…} or $…$)

Makes: a text, named text-1, text-2, …; last is the text.

Example: write "Figure 1. Water." size: 14 pt style: bold

Takes: a length (2 bond, 12 pt) (a number alone: pt). Default: 12 pt (smaller under a preset with atom labels smaller than Compact, about 7.4 pt under Nature).

The text size (a number alone is in pt).

Takes: normal, italic, bold, bold-italic. Default: normal.

Plain text only (not LaTeX): the whole text.

Takes: left, center, right. Default: left.

Plain text: how its lines line up.

Takes: a word or “quoted text”. Default: “Arial”; LaTeX “STIX 2”.

Plain text: any font; LaTeX: “STIX 2” or “Computer Modern”.

Takes: a color name or “#rrggbb”. Default: black.

A color name or a quoted hex value: color: “#cc0000”.

Takes: a name. Default: text-1, text-2, …

The name a script uses for it.

Draw the electron configuration of an atom or a monatomic ion as a figure: orbital boxes with half-arrows on the energy ladder (or in a line, or the notation alone), the core shaded or collapsed, the written configuration and its notes (exceptions, ions, magnetism). The same figure as Insert > Electron Configuration; double-click it to change it.

config <species> [options]

Argument (required): an atom or a monatomic ion (Fe, Fe2+, “iron(III)”, 26).

Option Takes Default
layout: diagram, line, text diagram
core: auto, shaded, collapsed auto (shaded through Kr, collapsed from Rb)
written: noble, full, none noble
order: filling, n filling
arrows: half, full half
orbitals: boxes, lines boxes
boxes: joined, separate joined for config, separate for mo
color: a color name or “#rrggbb” the theme (black, white in dark mode)
italic: yes, no no
worksheet: yes, no no
notes: yes, no yes
name: a name config-1, config-2, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • the argument is an atom or a monatomic ion (Fe, Fe2+, “iron(III)”, 26)

Makes: a figure, named config-1, config-2, …; last is the figure.

Example: config Fe2+

Takes: diagram, line, text. Default: diagram.

Diagram: the boxes on the energy ladder; line: the boxes in a row; text: the written configuration alone.

Takes: auto, shaded, collapsed. Default: auto (shaded through Kr, collapsed from Rb).

How the noble-gas core is drawn.

Takes: noble, full, none. Default: noble.

The written configuration under the figure: with the noble-gas core ([Ar] 4s2 3d6), in full, or none.

Takes: filling, n. Default: filling.

The written order: filling order (4s before 3d) or by shell (3d before 4s).

Takes: half, full. Default: half.

The electrons as half-arrows or full arrows.

Takes: boxes, lines. Default: boxes.

Each orbital as a box or as a short level line with the electrons across it.

Takes: joined, separate. Default: joined for config, separate for mo.

Degenerate boxes in one strip with shared walls, or apart joined by short ties (boxes only).

Takes: a color name or “#rrggbb”. Default: the theme (black, white in dark mode).

The figure in one color: a color name or a quoted hex value.

Takes: yes, no. Default: no.

Yes: the orbital letters in italic (sigma, pi, the p of 2p).

Takes: yes, no. Default: no.

Yes: empty boxes and no answer lines, for a worksheet.

Takes: yes, no. Default: yes.

The notes under the figure (exceptions, ions, core electrons).

Takes: a name. Default: config-1, config-2, …

The name a script uses for it.

Mark a bond angle on a molecule: a double-headed arc between two bonds of an atom and its label (109.5°, < 120°), moving with the molecule.

angle <object> [options]

Argument (required): a name (water) or a part (water.O).

Option Takes Default
between: (required) a name, set “S”, a list, or all
label: a word or “quoted text”
size: small, medium, large medium

Makes: an arc and its label, owned by the molecule.

Example: angle water.O between: [water.H1, water.H2] label: "104.5°"

Takes: a name, set “S”, a list, or all.

The two atoms at the ends of the angle: between: [water.H1, water.H2].

Takes: a word or “quoted text”.

The text by the arc: “109.5°”, ”< 120°”.

Takes: small, medium, large. Default: medium.

The arc: small, medium or large, a share of the shorter bond.

Draw the valence-bond orbital boxes of a drawn molecule: ground, excited, hybridized (sp to sp3d2), electrons colored by bond.

hybrid <name> [options]

Argument (required): a name (water).

Option Takes Default
center: (required) a word or “quoted text”
rows: all, ground-excited, excited-hybrid, hybrid all
pairing: yes, no no
label: a word or “quoted text” the formula: center, then H, then the rest alphabetically (H first for H2O, HCl, HCN), with the charge of an ion (NH4+, BH4−)
arrows: half, full half
partners: ground, hybrid, sp, sp2, sp3 ground
layout: stack, steps stack
name: a name hybrid-1, hybrid-2, …
into: set “Name”
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:

Makes: a figure, named hybrid-1, hybrid-2, …; last is the figure.

Example: hybrid ch4 center: C

Takes: a word or “quoted text”.

The element of the central atom (C), or several in quotes (“C O”): the first is hybridized, the others drawn as partner blocks.

Takes: all, ground-excited, excited-hybrid, hybrid. Default: all.

Which rows: all, or only the promotion step, or only the hybridization step, or the hybrid row.

Takes: yes, no. Default: no.

Yes: the Lewis-dot picture of the bonds forming under the boxes.

Takes: a word or “quoted text”. Default: the formula: center, then H, then the rest alphabetically (H first for H2O, HCl, HCN), with the charge of an ion (NH4+, BH4−).

The formula the hybridized row is named with (C in CO2); give a condensed formula here: label: “CH3OH”.

Takes: half, full. Default: half.

The electrons as half-arrows or full arrows.

Takes: ground, hybrid, sp, sp2, sp3. Default: ground.

The partner blocks: their ground row (and an excited row when they need promotion, C* in CO2 drawn from O), or hybridized too (hybrid: by their electron domains; sp, sp2, sp3: that one).

Takes: stack, steps. Default: stack.

Steps: the two rows side by side, a promotion or hybridization arrow between (rows: ground-excited or excited-hybrid; one center, no pairing; a center with no promotion draws ground to hybrid; any other call is an error).

Takes: a name. Default: hybrid-1, hybrid-2, …

The name a script uses for it.

A named VSEPR / VBT teaching picture: domain lobes, wire polyhedra, orbital overlaps.

scene <scene> [options]

Argument (required): a scene name (vsepr-repulsion, vsepr-co2-repulsion, co2-dipole, ethane-rotation, h2-curve, vsepr-sn3-repulsion, vsepr-sn4-repulsions, vsepr-sn4-repulsions-2, vsepr-sn5-trigonal-bipyramidal, sn6-octahedral, becl2-2, h2o-vbt, sp-hybrid, vbt-bonding-overlap, vbt-sigma-examples).

Option Takes Default
name: a name scene-1, …
into: set “Name”
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • the argument is a scene name (vsepr-repulsion, vsepr-co2-repulsion, co2-dipole, ethane-rotation, h2-curve, vsepr-sn3-repulsion, vsepr-sn4-repulsions, vsepr-sn4-repulsions-2, vsepr-sn5-trigonal-bipyramidal, sn6-octahedral, becl2-2, h2o-vbt, sp-hybrid, vbt-bonding-overlap, vbt-sigma-examples)

Makes: a figure, named scene-1, …; last is the figure.

Example: scene vsepr-repulsion

Takes: a name. Default: scene-1, …

The name a script uses for it.

Hybrid orbitals on xyz axes, from the orbitals that mix.

hybrid-orbitals <hybridization> [options]

Argument (required): a hybridization (sp, sp2, sp3, sp3d, sp3d2).

Option Takes Default
layout: story, set story
unhybridized: yes, no yes
name: a name hybrid-orbitals-1, …
into: set “Name”
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • the argument is a hybridization (sp, sp2, sp3, sp3d, sp3d2)

Makes: a figure, named hybrid-orbitals-1, …; last is the figure.

Example: hybrid-orbitals sp3

Takes: story, set. Default: story.

Story: the atomic orbitals, the arrow and the set; set: the hybrid set alone.

Takes: yes, no. Default: yes.

The p orbitals left out of the hybrids, in gray.

Takes: a name. Default: hybrid-orbitals-1, …

The name a script uses for it.

Draw a textbook cubic lattice as a figure: sc, bcc, fcc or nacl (rock salt), as the unit cell with each atom shaded by where it sits and the counting written out (8 x 1/8 + 6 x 1/2 = 4), or as its (100) layer. A picture: crystal NaCl draws editable atoms. The same figure as Insert > Lattice.

lattice <lattice> [options]

Argument (required): a cubic lattice (sc, bcc, fcc, nacl).

Option Takes Default
layout: cube, layer cube
notes: yes, no yes
color: a color name or “#rrggbb” the theme (black, white in dark mode)
name: a name lattice-1, lattice-2, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • the argument is a cubic lattice (sc, bcc, fcc, nacl)

Makes: a figure, named lattice-1, lattice-2, …; last is the figure.

Example: lattice fcc

Takes: cube, layer. Default: cube.

Cube: the unit cell with the counting; layer: the (100) plane, 3 by 3 cells.

Takes: yes, no. Default: yes.

The counting under the figure.

Takes: a color name or “#rrggbb”. Default: the theme (black, white in dark mode).

The figure in one color.

Takes: a name. Default: lattice-1, lattice-2, …

The name a script uses for it.

A library crystal’s unit cell, its atoms editable (19 built in: NaCl, CsCl, ZnS, wurtzite, CaF2, TiO2, SrTiO3, Cu, Al, Fe, Na, Mg, Zn, Po, diamond, graphite, quartz, ice, I2; a crystal file opens with File > Open). Its face, edge and corner atoms are drawn on every equivalent place, ionic charges shown. A name not in the library is looked up in the Crystallography Open Database (crystal halite), its best entry drawn; cod: draws one entry by its number.

crystal <crystal> [options]

Argument (required): a crystal in Molkit’s library (NaCl, rock salt, diamond, CsCl, ZnS, CaF2, copper); with cod:, any name (the entry number picks the crystal).

Option Takes Default
repeat: three whole numbers ([2, 2, 1]) [1, 1, 1]
along: clinographic, a, b, c, diagonal clinographic
direction: three whole numbers ([2, 2, 1])
counting: on, off off
depth: none, subtle, strong subtle
atoms-as: labels, balls labels
copies: lighter, solid, faint lighter
charges: on, off on
ellipsoids: on, off off
heights: on, off off
parameters: on, off off
prism: on, off off
cut: on, off off
polyhedra: an element symbol (O, Cl) off
holes: octahedral, tetrahedral, both, off off
holes-as: rings, shapes rings
stacking: on, off off
plane: three whole numbers ([2, 2, 1])
into: set “Name”
cod: a number (1.5)
name: a name nacl-1, diamond-1, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • the argument is a crystal in Molkit’s library (NaCl, rock salt, diamond, CsCl, ZnS, CaF2, copper)
  • with holes: octahedral, tetrahedral, or both, the argument is close-packed-crystal
  • with stacking: on, the argument is close-packed-crystal

Makes: a crystal, named nacl-1, diamond-1, …; last is the crystal.

Example: crystal NaCl

Takes: three whole numbers ([2, 2, 1]). Default: [1, 1, 1].

The cell repeated along a, b, c, 1 to 4 each: repeat: [2, 2, 1].

Takes: clinographic, a, b, c, diagonal. Default: clinographic.

Look along an axis (a layer), the body diagonal, or the textbook view.

Takes: three whole numbers ([2, 2, 1]).

Look along any direction [u, v, w] (u a + v b + w c).

Takes: on, off. Default: off.

Each atom tinted by where it sits (corner, edge, face, inside), the sum under the cell.

Takes: none, subtle, strong. Default: subtle.

The atoms and bonds farther back drawn lighter: none, subtle, strong.

Takes: labels, balls. Default: labels.

The atoms drawn as element labels, or as shaded balls and sticks (the textbook ionic and metallic look).

Takes: lighter, solid, faint. Default: lighter.

With repeat: the repeated cells drawn lighter, solid (as the first cell) or faint.

Takes: on, off. Default: on.

The charges drawn on the ions, or hidden (the atoms keep them).

Takes: on, off. Default: off.

A crystal from a file with displacement parameters: its 3D views draw each atom as its 50% thermal ellipsoid (ORTEP).

Takes: on, off. Default: off.

Looking straight down a, b or c: each atom’s height along that axis written beside it (0, 1/2, 1/4), the exam drawing.

Takes: on, off. Default: off.

The cell’s lengths and angles written above it (a = b = c = 5.64 Å; α = β = γ = 90°).

Takes: on, off. Default: off.

A hexagonal cell (Mg, Zn, wurtzite, quartz): drawn in its hexagonal prism of three cells, the unit cell outlined inside, as textbooks draw hcp. A cell with no atom at its corner first has its origin moved onto an atom: the same crystal, one undo step. One cell, in the textbook view unless along: says otherwise; not with a repeat: above 1 1 1.

Takes: on, off. Default: off.

In its 3D views, each atom on a face, edge or corner drawn as its share inside the cell (1/2, 1/4, 1/8); one cell.

Takes: an element symbol (O, Cl). Default: off.

Coordination polyhedra round the atoms of an element: polyhedra: Cl (rock salt’s octahedra), Ti, S; off for none.

Takes: octahedral, tetrahedral, both, off. Default: off.

A crystal on a close-packed array: mark its octahedral or tetrahedral holes (what fills them is said).

Takes: rings, shapes. Default: rings.

With holes: rings mark only the empty holes (an ion in a hole is its own mark); shapes put a square or triangle at every hole.

Takes: on, off. Default: off.

A crystal on a close-packed array: ring its atoms by layer (A B C or A B), looking along their direction.

Takes: three whole numbers ([2, 2, 1]).

Draw the (h k l) plane in the cell, its atoms ringed, its spacing d: plane: [1, 1, 1].

Takes: set “Name”.

Adds the crystal to that set as its Crystal view (one picture of the species: a salt’s Lewis ion pair stays the set’s opening view); creates the set if needed.

Takes: a number (1.5).

A Crystallography Open Database entry by its 7-digit number: crystal halite cod: 9003308 (the log writes the one a name found).

Takes: a name. Default: nacl-1, diamond-1, …

The name a script uses for it.

Draw a molecular orbital diagram: of a diatomic molecule or ion (H2 to Ne2 and their ions, by the textbook rules, with the bond order and the magnetism), or the simple Hückel pi levels of a conjugated hydrocarbon (named, or a drawn molecule by its name). The same figures as Insert > MO Diagram and Insert > Hückel Diagram; double-click one to change it.

mo <species> [options]

Argument (required): a diatomic molecule or ion (O2, N2+, CO) for the textbook diagram; a named conjugated hydrocarbon (benzene, allyl cation) or a drawn one for Hückel levels; a drawn molecule for method: xtb.

Option Takes Default
method: rules, huckel, xtb rules for a diatomic, huckel for a conjugated hydrocarbon; xtb only when written
arrows: half, full half
orbitals: boxes, lines boxes
boxes: joined, separate joined for config, separate for mo
color: a color name or “#rrggbb” the theme (black, white in dark mode)
italic: yes, no no
worksheet: yes, no no
notes: yes, no yes
for: a name
show: figure, nothing figure
name: a name mo-1, mo-2, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • with method: rules, the argument is a diatomic molecule or ion (O2, CO, CN−, NO+)

Makes: a figure, named mo-1, mo-2, …; last is the figure (none with show: nothing).

Example: mo O2

Takes: rules, huckel, xtb. Default: rules for a diatomic, huckel for a conjugated hydrocarbon; xtb only when written.

Rules: the textbook diagram of a diatomic; huckel: the simple Hückel pi levels of a named or drawn conjugated hydrocarbon; xtb: the computed levels of a drawn molecule (GFN2-xTB in the browser, closed shells).

Takes: half, full. Default: half.

The electrons as half-arrows or full arrows.

Takes: boxes, lines. Default: boxes.

Each orbital as a box or as a short level line with the electrons across it.

Takes: joined, separate. Default: joined for config, separate for mo.

Degenerate boxes in one strip with shared walls, or apart joined by short ties (boxes only).

Takes: a color name or “#rrggbb”. Default: the theme (black, white in dark mode).

The figure in one color: a color name or a quoted hex value.

Takes: yes, no. Default: no.

Yes: the orbital letters in italic (sigma, pi, the p of 2p).

Takes: yes, no. Default: no.

Yes: empty boxes and no answer lines, for a worksheet.

Takes: yes, no. Default: yes.

The notes under the diagram (ions, s-p mixing).

Takes: a name.

A drawn diatomic (method: rules): the diagram’s data is kept with that molecule, so its SVG export carries it and the Molkit Viewer shows it (an MO diagram button); the molecule must be the same species (mo N2 for: nitrogen).

Takes: figure, nothing. Default: figure.

Figure: the diagram is drawn on the canvas; nothing: only kept with the molecule (for: needed).

Takes: a name. Default: mo-1, mo-2, …

The name a script uses for it.

Build an orbital picture of a molecule, on a copy as Derive View > Orbital Picture does (the original stays).

orbital-picture <name> [options]

Argument (required): a name (water).

Option Takes Default
content: full, p-only full
ink: color, black-white, textbook the document’s choice
spacing: auto, drawn, cozy, roomy auto
connector: ribbon, line, dashed, none ribbon
hybrids: a word or “quoted text” the chemistry’s
callouts: on, off off
preset: vb-line, vb-shaded, pi-dashed, pi-dashed-line, pi-near, kekule
lock: on, off off
far-side: on, off the document’s
delocalized: on, off the document’s
hide-covered: on, off the document’s
fill: document, outline, flat, shaded document
junction: document, standoff, through document
names: on, off on
pairs: on, off on
copy: on, off on
into: set “Name”
if-exists: error error

Option rules (Check and Run both apply them):

  • into: cannot be used with copy: off

Makes: the picture on a copy (water-orbitals-full, water-orbitals-p-only); last is the copy (with copy: off, the molecule).

Example: orbital-picture ethylene content: p-only

Takes: full, p-only. Default: full.

Full: every orbital; p-only: the p orbitals (the pi system) only.

Takes: color, black-white, textbook. Default: the document’s choice.

The picture in color, in black and white, or textbook (orange hybrids, a dark and a white p lobe, the heavy atoms circled).

Takes: auto, drawn, cozy, roomy. Default: auto.

Bond lengths in the picture; auto lengthens bonds that are too short for the lobes.

Takes: ribbon, line, dashed, none. Default: ribbon.

How the two p orbitals of a pi bond are joined: a shaded ribbon, a line, a dashed line, or nothing.

Takes: a word or “quoted text”. Default: the chemistry’s.

The hybridization drawn for every atom of an element, e.g. “O=sp” or “O=none, C=sp” (none: unhybridized).

Takes: on, off. Default: off.

On: labels with arrows naming the hybrid orbitals, a p orbital, a 1s orbital, the sigma bonds (when sigma overlap is drawn) and each pi bond, and a caption naming each atom hybridization and its hybrid arrangement (an sp3d or sp3d2 center is named, its orbitals not drawn).

Takes: vb-line, vb-shaded, pi-dashed, pi-dashed-line, pi-near, kekule.

A built-in preset of the Orbital Picture panel first (its ink and spacing left alone); the options on the line go over it.

Takes: on, off. Default: off.

On: every orbital, pi bond and shared pair of the picture kept as it is when it is redrawn.

Takes: on, off. Default: the document’s.

On draws the far lobes of the p orbitals and hybrids.

Takes: on, off. Default: the document’s.

On draws one pi system over the conjugated atoms.

Takes: on, off. Default: the document’s.

On leaves out the far lobes a near lobe covers.

Takes: document, outline, flat, shaded. Default: document.

The lobes as line art, flat, or shaded.

Takes: document, standoff, through. Default: document.

Standoff: the lobes start at the atom label; through: filled lobes run under it.

Takes: on, off. Default: on.

On names the orbitals (sp3, 2p, 1s) where the bonds are long enough.

Takes: on, off. Default: on.

On draws the electron pairs in their orbitals.

Takes: on, off. Default: on.

On: the picture is drawn on a copy; off: on the molecule itself.

Takes: error. Default: error.

What happens when the name it would make is taken.

Change an object, a set, or a part (an atom, a bond): its color, words, or chemistry; a set’s opening view; an animation’s timing, a pane’s title, a change’s time (sn2.change1).

change <object> [options]

Argument (required): a name (water), a part (water.O), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
hold: a time (2 s, 500 ms) or auto
excluded: on, off
time: a time (2 s, 500 ms) or auto
easing: auto, ease-in-out, ease-out, ease-in, linear
match: a list of pairs [[HA, acetic-acid]]
speed: a number (1.5)
duration: a time (2 s, 500 ms) or auto
timing: auto
opens-on: lewis, lewis-angled, lewis-square, vsepr, condensed, bondline, fischer, orbitals, 3d, crystal
title: a word or “quoted text”
chains: preferred
pose: pose
orient: face-a, face-b, face-c, edge, diagonal, textbook, front, side, top, tilted, level
zoom: a number (1.5)
look: ball-and-stick, space-filling, stick, wireframe, cartoon
linked: on, off
measure: a whole number or a list of them ([1, 3])
measures: off
unmeasure: a whole number or a list of them ([1, 3])
minimize: mmff, xtb
turn: a whole number or a list of them ([1, 3])
turn-by: a number (1.5)
flip: a whole number
conformer: a whole number
play: spin, vibration, flip, none
autoplay: on, off
loop: on, off
path: mmff, xtb
text: a word or “quoted text”
align-text: left, center, right
color: a color name or “#rrggbb” or none
bond-width: a length (2 bond, 12 pt) (a number alone: px)
head: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down
start-head: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down
from: a point (x, y)
to: a point (x, y)
dash: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash
line-width: a length (2 bond, 12 pt) (a number alone: px)
favors: products, reactants, neither
short: a number (1.5)
head-size: a length (2 bond, 12 pt) (a number alone: px)
head-sharpness: a number (1.5)
head-color: a color name or “#rrggbb”
label-below: a word or “quoted text”
bow: auto, left, right, bigger, smaller
s: more, less
size: a length (2 bond, 12 pt) (a number alone: pt)
font: a word or “quoted text”
style: normal, italic, bold, bold-italic
caption: a word or “quoted text”
frame: start, ts, end
image: a whole number
band: a number (1.5)
kind: show, predict, straight, equilibrium, resonance, retrosynthesis, squiggle
ask: a word or “quoted text”
highlight: a name, set “S”, a list, or all
panels: structure, plot, table
element: an element symbol (O, Cl)
h-side: auto, left, right, above, below
charge: a whole-number charge (-1, 0, +1)
label: a word or “quoted text”
carbon-labels: auto, on, off
lone-pairs: a whole number
radicals: a whole number
number: a whole number or none
order: a whole number
bond-style: plain, wedge, hash, hollow-wedge, wavy, bold, dative, dative-dots, hydrogen, dotted, aromatic, crossed, cross-marked, dashed-double, dashed-triple, coordination
second-line: left, right, center, auto
stereo: R, S, E, Z, invert
opacity: a number (1.5)
pattern: none, hatch, crosshatch
gradient: none, linear, radial
inset: a length (2 bond, 12 pt) (a number alone: bond)
rounding: a number (1.5)
repeat: three whole numbers ([2, 2, 1])
along: clinographic, a, b, c, diagonal, from-3d
direction: three whole numbers ([2, 2, 1])
counting: on, off
depth: none, subtle, strong
atoms-as: labels, balls
copies: lighter, solid, faint
charges: on, off
ellipsoids: on, off
heights: on, off
parameters: on, off
prism: on, off
cut: on, off
polyhedra: an element symbol (O, Cl)
holes: octahedral, tetrahedral, both, off
holes-as: rings, shapes
stacking: on, off
plane: three whole numbers ([2, 2, 1])
cell: conventional
number-position: auto, top, top-left, top-right, left, right, bottom, bottom-left, bottom-right
number-color: a color name or “#rrggbb” or none
number-size: a number (1.5)
number-font: default, arial, times, courier, georgia, verdana
stereo-label-position: auto, top, top-left, top-right, left, right, bottom, bottom-left, bottom-right
stereo-label-color: a color name or “#rrggbb” or none
stereo-label-size: a number (1.5)
stereo-label-font: default, arial, times, courier, georgia, verdana
label-size: a number (1.5)
label-weight: thin, extra-light, light, normal, medium, semi-bold, bold, extra-bold, black, default
label-shown: on, off
label-clearance: a number (1.5)
charge-look: superscript, circle, default
charge-position: auto, top-right, top-left, top, bottom-right, bottom-left, bottom, default
charge-size: a number (1.5)
stereo-label: a word or “quoted text”
charge-color: a color name or “#rrggbb” or none
isotope: a number (1.5)
lone-pair-look: dots, lines, lobes, default
lone-pair-size: a number (1.5)
lone-pair-spacing: a number (1.5)
lone-pair-distance: a number (1.5)
lone-pair-color: a color name or “#rrggbb” or none
radical-look: dots, lines, lobes, default
radical-size: a number (1.5)
radical-spacing: a number (1.5)
radical-distance: a number (1.5)
radical-color: a color name or “#rrggbb” or none
label-halo: a number (1.5)
wedge-narrow: a number (1.5)
dative-width: a number (1.5)
crossing-gap: a number (1.5)
bond-clearance: a number (1.5)
color-by-element: on, off, auto
aromatic: kekule, circle, auto
hidden: on, off
wedge-width: a number (1.5)
hash-lines: a number (1.5)
double-gap: a number (1.5)
wavy-height: a number (1.5)
wavy-waves: a number (1.5)
dative-head: a number (1.5)
line-cap: butt, round, default
labels: on, off
label-chips: on, off
colors: cpk, contrast, scheme
fade: on, off
background: a color name or “#rrggbb” or none
crossing: front, back, reset
category: lewis, vsepr, condensed, bondline, fischer, orbitals, none
dihedral: an angle (90 deg)
flipped: on, off
center-labels: on, off
rs-labels: on, off
numbering: none, top-down, bottom-up
dihedral-label: on, off
conformation-label: on, off
ring-width: a number (1.5)
bold-width: a number (1.5)
spacing: a number (1.5)
arm-length: a number (1.5)
crossing-style: continuous, break
radius: a number (1.5)
circle-width: a number (1.5)
circle-fill: none, white, canvas
back-bonds: truncated, full
eclipsed-offset: a number (1.5)
bond-length: a number (1.5)
conformation-label-size: a number (1.5)
conformation-label-color: a color name or “#rrggbb” or none
conformation-label-style: italic, plain, bold, bold-italic
center-dot: on, off
ring-height: a number (1.5)
sub-length: a number (1.5)
axial-length: a number (1.5)
equatorial-length: a number (1.5)
bold-front: on, off
harpoon-shift: a number (1.5)
arrow-gap: a number (1.5)
top-length: a length (2 bond, 12 pt) (a number alone: bond)
bottom-length: a length (2 bond, 12 pt) (a number alone: bond)
top-color: a color name or “#rrggbb”
bottom-color: a color name or “#rrggbb”
sharp-points: on, off
retro-angle: a number (1.5)
retro-curve: a number (1.5)
squiggle-waves: a whole number
squiggle-height: a number (1.5)
anim-role: auto, flow, annotation
padding: a number (1.5)
caps: a number (1.5)
bow-depth: a number (1.5)
tip: a number (1.5)
curl: a number (1.5)
copolymer: a word or “quoted text”
fill: a color name or “#rrggbb” or none
fill-opacity: a number (1.5)
corner: a length (2 bond, 12 pt)
line-opacity: a number (1.5)
shape-size: a point (x, y)
circle-size: a number (1.5)
circle-color: a color name or “#rrggbb” or none
circle-dashed: on, off
arc: on, off
arc-style: dashed, solid
arc-curve: a number (1.5)
arc-color: a color name or “#rrggbb” or none
r-group: a word or “quoted text”
attachment: on, off
length: a length (2 bond, 12 pt) (a number alone: bond)
fill-pattern: hatch, crosshatch, dots, none
gradient-to: a color name or “#rrggbb” or none
shadow: on, off
glow: a color name or “#rrggbb” or none
box-size: a point (x, y)
rotation: an angle (90 deg)
border: a color name or “#rrggbb” or none
border-width: a length (2 bond, 12 pt) (a number alone: px)
description: a word or “quoted text”
filename: a word or “quoted text”
pane-order: a whole number or a list of them ([1, 3])
pivot: atoms, frame
appears: auto, after-arrows
notes: a word or “quoted text”
common-names: a word or “quoted text”

Option rules (Check and Run both apply them):

  • opens-on: only with a set as the argument
  • chains: only with a set as the argument
  • title: only with an argument that is not a set

Makes: nothing new; it changes what is there.

Example: change set "Ammonia" opens-on: vsepr

Takes: a time (2 s, 500 ms) or auto.

A pane (sn2.pane2): how long it stays on screen (2 s; auto: the automatic time).

Takes: on, off.

A pane: on leaves it out of playback (at least two panes keep playing).

Takes: a time (2 s, 500 ms) or auto.

A change (sn2.change1, the move from the first played pane to the second): how long it takes (1.5 s; auto).

Takes: auto, ease-in-out, ease-out, ease-in, linear.

A change: its motion (auto: each motion its designed curve).

Takes: a list of pairs [[HA, acetic-acid]].

A change: atoms matched by hand, one from each pane, kept when the panes are matched again: match: [[ethanol.C1, ethanal.C1]].

Takes: a number (1.5).

An animation: its pace (1 normal, 2 twice as fast).

Takes: a time (2 s, 500 ms) or auto.

An animation: the speed that makes it last this long (8 s; auto: speed 1).

Takes: auto.

An animation: auto clears every pane and change time and sets speed 1.

Takes: lewis, lewis-angled, lewis-square, vsepr, condensed, bondline, fischer, orbitals, 3d, crystal.

A set: the view its figure opens on (the first pane of the Molkit Viewer; the set’s Opens on setting).

Takes: a word or “quoted text”.

An object: what it is called in words.

Takes: preferred.

A set: its 2D drawings in the molecule’s preferred shape (each chain bond turned to the 3D twist).

Takes: pose.

A 3D view: its angle in degrees, x then y then z: pose: (20, -35, 0).

Takes: face-a, face-b, face-c, edge, diagonal, textbook, front, side, top, tilted, level.

A 3D view: a named view; a crystal’s face-a, face-b, face-c, edge [1 1 0], diagonal [1 1 1], textbook; a molecule’s front, side, top, tilted; level (straight up).

Takes: a number (1.5).

A 3D view: its size in its box, not a step (1.5 is larger than 1); a new view opens fitted to its box, often above 1: describe gives its zoom.

Takes: ball-and-stick, space-filling, stick, wireframe, cartoon.

A 3D view: how it is drawn (cartoon: flat colors with dark outlines).

Takes: on, off.

A 3D view: on follows its molecule; off keeps its shape.

Takes: a whole number or a list of them ([1, 3]).

A 3D view: kept on its picture, by atom: [1, 2] a distance, 3 an angle, 4 a dihedral.

Takes: off.

A 3D view: off removes them.

Takes: a whole number or a list of them ([1, 3]).

A 3D view: removes the one measurement on these atoms (round 2): unmeasure: [1, 2].

Takes: mmff, xtb.

A 3D view: relax its shape (xtb: the helper).

Takes: a whole number or a list of them ([1, 3]).

A 3D view: a bond by its atoms, with turn-by:.

Takes: a number (1.5).

Degrees.

Takes: a whole number.

A 3D view: the six-membered ring at this atom.

Takes: a whole number.

A 3D view: 1 is the lowest (MMFF94).

Takes: spin, vibration, flip, none.

A 3D view: what a page plays.

Takes: on, off.

Starts by itself.

Takes: on, off.

Repeats.

Takes: mmff, xtb.

How a flip path is made.

Takes: a word or “quoted text”.

A text: its new words (plain text, its bold / italic kept, tags as in write); a LaTeX text: a new $…$ or \ce{} source, set at its size, color and center.

Takes: left, center, right.

A plain text: how its lines line up.

Takes: a color name or “#rrggbb” or none.

A molecule or set: every atom label and bond; a part: that atom (water.O) or bond (water.bond(O, H1)); a text: its color. A color name or a quoted hex value; none: back to the scheme’s.

Takes: a length (2 bond, 12 pt) (a number alone: px).

A molecule or set: every bond; a bond (a part): that bond (a number alone is in px: bond-width: 1.5).

Takes: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down.

An arrow: its end head (as arrow head:).

Takes: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down.

An arrow: its start head.

Takes: a point (x, y).

A straight or bent arrow: its start moved to this point, in bonds (between objects, it is then a free arrow).

Takes: a point (x, y).

A straight or bent arrow: its end moved to this point, in bonds.

Takes: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash.

An arrow or box: its line pattern.

Takes: a length (2 bond, 12 pt) (a number alone: px).

An arrow, box, bracket, or projection: its line width (px).

Takes: products, reactants, neither.

An equilibrium arrow: the long harpoon on that side (neither: two of one length).

Takes: a number (1.5).

An equilibrium arrow that favors a side: the short harpoon as a part of the long one (0.6 is 60 %).

Takes: a length (2 bond, 12 pt) (a number alone: px).

An arrow: the width of its heads (px; their sharpness kept); an equilibrium arrow: both heads.

Takes: a number (1.5).

An arrow: head length over head width (2 is usual).

Takes: a color name or “#rrggbb”.

An arrow: its heads in their own color.

Takes: a word or “quoted text”.

An arrow: the text under it (none takes it off).

Takes: auto, left, right, bigger, smaller.

A curved arrow: shaped again from its ends, bulging to that side (seen from its start), then bigger / smaller steps, as arrow bow: (the F key flips it).

Takes: more, less.

A curved arrow drawn as an S: shaped again, its lobes bigger or smaller per step.

Takes: a length (2 bond, 12 pt) (a number alone: pt).

A text: its size (a number alone is in pt).

Takes: a word or “quoted text”.

A plain text: its font (“Times New Roman”).

Takes: normal, italic, bold, bold-italic.

A plain text.

Takes: a word or “quoted text”.

A molecule or set: title, formula, name, none, or “text”, centered half a bond length under it; a tour step (sn2.step2): its words (sub, sup, i, b tags; {barrier} {energy} {units} fill in).

Takes: start, ts, end.

A tour step: the image it shows (start, ts: the top of the path, end).

Takes: a whole number.

A tour step: the image it shows, by number (1 is the reactants).

Takes: a number (1.5).

A molecule’s IR tour step (ethanol.step2): the band it shows, by wavenumber.

Takes: show, predict, straight, equilibrium, resonance, retrosynthesis, squiggle.

A tour step: predict asks a question and hides the numbers until the reader chooses Show answer; an arrow: straight, equilibrium, resonance, retrosynthesis, or squiggle (its ends kept).

Takes: a word or “quoted text”.

A predict tour step: its question.

Takes: a name, set “S”, a list, or all.

A tour step: atoms (or whole molecules) of the first pane to ring.

Takes: structure, plot, table.

A tour step: the views it opens (the others close).

Takes: an element symbol (O, Cl).

An atom (a part): its element symbol; its lone pairs are counted again.

Takes: auto, left, right, above, below.

An atom (a part): the side its H atoms are written on (HO, OH); auto: Molkit’s rule.

Takes: a whole-number charge (-1, 0, +1).

An atom (a part): its formal charge, -1, 0, +1 (+ and - mean +1 and -1); its lone pairs are counted again.

Takes: a word or “quoted text”.

An atom (a part): the text drawn for it (“OH”, “Me”); an arrow: the text above it ($…$ LaTeX too); none takes it off.

Takes: auto, on, off.

A molecule or a carbon (a part): written as C (on), bare (off), or as draw does (auto).

Takes: a whole number.

An atom (a part): how many lone pairs it has (Molkit places them).

Takes: a whole number.

An atom (a part): how many unpaired electrons it has; its lone pairs are counted again.

Takes: a whole number or none.

An atom (a part): its atom number; none takes it off.

Takes: a whole number.

A bond (a part): 1, 2, or 3; the lone pairs of its two atoms are counted again.

Takes: plain, wedge, hash, hollow-wedge, wavy, bold, dative, dative-dots, hydrogen, dotted, aromatic, crossed, cross-marked, dashed-double, dashed-triple, coordination.

A bond (a part): how it is drawn; a wedge, hash or hollow wedge is narrow at the first atom named: change ethanol.bond(C2, O) bond-style: wedge. crossed: two crossing lines (E/Z unknown); cross-marked: a double bond with an X at its middle; crossed, cross-marked and dashed-double make it double, dashed-triple triple, coordination a dashed line with no order.

Takes: left, right, center, auto.

A double bond (a part): the side of its second line, seen from the first atom named; auto: Molkit’s rule.

Takes: R, S, E, Z, invert.

A stereocentre (x.C2): R, S or invert; a double bond: E, Z or invert; a molecule: invert (its enantiomer).

Takes: a number (1.5).

A ring fill (fill-1) or a LaTeX text: 0.05 to 1.

Takes: none, hatch, crosshatch.

A ring fill.

Takes: none, linear, radial.

A ring fill.

Takes: a length (2 bond, 12 pt) (a number alone: bond).

A ring fill: 0 to 0.5 bond.

Takes: a number (1.5).

A ring fill: 0 to 1.

Takes: three whole numbers ([2, 2, 1]).

A crystal: cells along a, b, c, 1 to 4 each: repeat: [2, 2, 1].

Takes: clinographic, a, b, c, diagonal, from-3d.

A crystal: look along an axis, the body diagonal, or the textbook view; from-3d: as its 3D view is turned.

Takes: three whole numbers ([2, 2, 1]).

A crystal: look along [u, v, w].

Takes: on, off.

A crystal: count the atoms by where they sit, on the drawing.

Takes: none, subtle, strong.

A crystal: the atoms farther back drawn lighter (none, subtle, strong).

Takes: labels, balls.

A crystal: its atoms as element labels or as shaded balls and sticks.

Takes: lighter, solid, faint.

A crystal: its repeated cells drawn lighter, solid or faint.

Takes: on, off.

A crystal: the charges on its ions shown or hidden.

Takes: on, off.

A crystal: thermal ellipsoids (50%) in its 3D views, when its file gave displacement parameters.

Takes: on, off.

A crystal looked at down a, b or c: each atom’s height along it written beside it.

Takes: on, off.

A crystal: its cell lengths and angles written above it.

Takes: on, off.

A hexagonal crystal: drawn in its hexagonal prism, the cell outlined inside; a cell with no atom at its corner first has its origin moved onto an atom (the same crystal).

Takes: on, off.

A crystal: its 3D views draw each boundary atom as its share inside the cell.

Takes: an element symbol (O, Cl).

A crystal: coordination polyhedra round the atoms of an element (off: none).

Takes: octahedral, tetrahedral, both, off.

A crystal on a close-packed array: mark its holes.

Takes: rings, shapes.

With holes: rings (the empty holes only) or shapes (every hole).

Takes: on, off.

A crystal on a close-packed array: ring its atoms by layer.

Takes: three whole numbers ([2, 2, 1]).

A crystal: the (h k l) plane in the cell ([0, 0, 0] removes it).

Takes: conventional.

A crystal held as a primitive cell: redraw it as its conventional cube.

Takes: auto, top, top-left, top-right, left, right, bottom, bottom-left, bottom-right.

Where its atom number sits by the atom; auto: placed clear of the bonds.

Takes: a color name or “#rrggbb” or none.

Its atom number in its own color (none: the document’s).

Takes: a number (1.5).

The size of its atom number, as a fraction of the label (0.3 to 1.5; the document’s is 0.6).

Takes: default, arial, times, courier, georgia, verdana.

The font of its atom number; default: the document’s.

Takes: auto, top, top-left, top-right, left, right, bottom, bottom-left, bottom-right.

Where its stereo label sits by the atom; auto: placed clear of the bonds.

Takes: a color name or “#rrggbb” or none.

Its stereo label in its own color (none: the document’s).

Takes: a number (1.5).

The size of its stereo label, as a fraction of the label (0.3 to 1.5; the document’s is 0.65).

Takes: default, arial, times, courier, georgia, verdana.

The font of its stereo label; default: the document’s.

Takes: a number (1.5).

An atom label’s size in px (8 to 32; the document’s is 14).

Takes: thin, extra-light, light, normal, medium, semi-bold, bold, extra-bold, black, default.

An atom label’s weight (thin, light, normal, medium, semi-bold, bold, extra-bold, black …: the font’s own); default: the document’s.

Takes: on, off.

Show label: on draws the atom’s label (a carbon: use carbon-labels:), off hides it.

Takes: a number (1.5).

The gap between the label and its bonds, in px (0.1 to 8).

Takes: superscript, circle, default.

A charge drawn as a superscript sign or in a circle; default: the document’s.

Takes: auto, top-right, top-left, top, bottom-right, bottom-left, bottom, default.

Where the charge sits by its label; default: the document’s.

Takes: a number (1.5).

The charge sign’s size, as a fraction of the label (0.3 to 2).

Takes: a word or “quoted text”.

An atom or bond: a stereo label of its own written by it (“(R)”, ”*”, “E”); none takes it off.

Takes: a color name or “#rrggbb” or none.

The charge sign’s own color (none: the label’s).

Takes: a number (1.5).

The mass number written before the label (13 for carbon-13; 0 takes it off).

Takes: dots, lines, lobes, default.

Its lone pairs drawn as dots, lines or lobes; default: the document’s.

Takes: a number (1.5).

The size of its lone pairs (0.5 to 4; the document’s is 1.5).

Takes: a number (1.5).

The gap between the dots of its lone pairs, in px (1 to 6).

Takes: a number (1.5).

How far its lone pairs sit from the label, in px (1 to 12).

Takes: a color name or “#rrggbb” or none.

Its lone pairs in their own color (none: the standard color).

Takes: dots, lines, lobes, default.

Its unpaired electrons drawn as dots, lines or lobes; default: the document’s.

Takes: a number (1.5).

The size of its unpaired electrons (0.5 to 4; the document’s is 1.5).

Takes: a number (1.5).

The gap between the dots of its unpaired electrons, in px (1 to 6).

Takes: a number (1.5).

How far its unpaired electrons sit from the label, in px (1 to 12).

Takes: a color name or “#rrggbb” or none.

Its unpaired electrons in their own color (none: the standard color).

Takes: a number (1.5).

The white gap round the label where bonds and lines stop, in px (0 to 10; the document’s is 2.1).

Takes: a number (1.5).

A wedge’s narrow end, in px (0 is a point; 0 to 5).

Takes: a number (1.5).

A dative bond’s arrowhead width, in px (1 to 5).

Takes: a number (1.5).

The gap cut in this bond where another bond crosses it, in px (0 to 10).

Takes: a number (1.5).

How far this bond stops short of the labels at its ends, in px (0 to 8).

Takes: on, off, auto.

This bond’s halves in its atoms’ colors (on), plain (off), or as the document says (auto).

Takes: kekule, circle, auto.

A bond of an aromatic ring: the whole ring drawn with alternating double bonds (kekule) or its circle (circle; the ring needs show aromatic-circles); auto: the document’s.

Takes: on, off.

On hides the bond (it still counts for the formula and SMILES).

Takes: a number (1.5).

A wedge’s widest end, in px (1 to 6).

Takes: a number (1.5).

How many lines a hashed bond has (3 to 15).

Takes: a number (1.5).

The gap between a double or triple bond’s lines, in px (1 to 5).

Takes: a number (1.5).

A wavy bond’s wave height, in px (1 to 5).

Takes: a number (1.5).

A wavy bond’s waves (4 to 16).

Takes: a number (1.5).

A dative bond’s arrowhead length, in px (3 to 12).

Takes: butt, round, default.

The ends of the bond’s lines; default: the document’s.

Takes: on, off.

A 3D view: element labels on its atoms (the 3D panel’s Labels); a chair: its atom labels.

Takes: on, off.

A 3D view: the labels on dark rounded backgrounds (with labels: on).

Takes: cpk, contrast, scheme.

A 3D view’s atom colors: cpk, contrast (the high-contrast palette), or scheme (the document’s element colors).

Takes: on, off.

A 3D view: far atoms fade toward the background.

Takes: a color name or “#rrggbb” or none.

A 3D view’s background, or a LaTeX text’s background: none, or a color name or quoted hex value.

Takes: front, back, reset.

A bond (a part): drawn in front of or behind the bonds it crosses, as Bring Bond to Front / Send Bond to Back; reset gives it back.

Takes: lewis, vsepr, condensed, bondline, fischer, orbitals, none.

A molecule: the view it is tagged as (its view label and export), as right-click Set Category; none clears it. The drawing does not change.

Takes: an angle (90 deg).

A Newman projection: its front-to-back angle (0 eclipsed, 60 gauche, 180 anti), as the Dihedral slider.

Takes: on, off.

A chair: on is the other chair (ring flip: axial and equatorial groups swap).

Takes: on, off.

A Fischer projection: its stereocenter carbons labeled C.

Takes: on, off.

A Fischer projection: R / S by each stereocenter.

Takes: none, top-down, bottom-up.

A Fischer projection: its carbons numbered from the top or the bottom.

Takes: on, off.

A Newman projection: the dihedral angle written on it.

Takes: on, off.

A Newman projection: staggered / eclipsed / gauche / anti written under it.

Takes: a number (1.5).

A Haworth or chair: its ring width in px.

Takes: a number (1.5).

A Haworth or chair: its bold front edge width in px.

Takes: a number (1.5).

A Fischer projection: the spacing between its centers in px.

Takes: a number (1.5).

A Fischer projection: its arm length in px.

Takes: continuous, break.

A Fischer projection: the vertical line drawn through each crossing, or broken at it.

Takes: a number (1.5).

A Newman projection: its circle radius in px.

Takes: a number (1.5).

A Newman projection: its circle’s line width in px.

Takes: none, white, canvas.

A Newman projection: its circle filled white, with the canvas color, or not.

Takes: truncated, full.

A Newman projection: its back bonds stopped at the circle, or drawn in full.

Takes: a number (1.5).

A Newman projection: how far eclipsed back bonds are turned off the front ones, 30 to 60 degrees.

Takes: a number (1.5).

A Newman projection: its bond length in px.

Takes: a number (1.5).

A Newman projection: the conformation label size in px.

Takes: a color name or “#rrggbb” or none.

A Newman projection: the conformation label’s color (none: the line color).

Takes: italic, plain, bold, bold-italic.

A Newman projection: the conformation label in italic (the usual), plain, bold, or bold italic.

Takes: on, off.

A Newman projection: a dot at its center.

Takes: a number (1.5).

A Haworth projection: its ring height in px.

Takes: a number (1.5).

A Haworth projection: its substituent line length in px.

Takes: a number (1.5).

A chair: its axial bond length in px.

Takes: a number (1.5).

A chair: its equatorial bond length in px.

Takes: on, off.

A chair: its front bonds drawn bold.

Takes: a number (1.5).

An equilibrium: the short harpoon slid along the long one, in % (-100 to 100).

Takes: a number (1.5).

An equilibrium or retrosynthesis arrow: the gap between its two lines, in px (1 to 20).

Takes: a length (2 bond, 12 pt) (a number alone: bond).

An equilibrium that favors neither side: its top arrow’s length, in bonds.

Takes: a length (2 bond, 12 pt) (a number alone: bond).

An equilibrium that favors neither side: its bottom arrow’s length, in bonds.

Takes: a color name or “#rrggbb”.

An equilibrium: its top arrow’s line color.

Takes: a color name or “#rrggbb”.

An equilibrium: its bottom arrow’s line color.

Takes: on, off.

An arrow’s heads drawn with sharp points.

Takes: a number (1.5).

A retrosynthesis arrow: its open head’s angle, in degrees (15 to 60; 35 is usual).

Takes: a number (1.5).

A retrosynthesis arrow: its head drawn curved, by this % (5 to 45; 0 is straight).

Takes: a whole number.

A squiggle: how many waves (2 to 12; 7 is usual).

Takes: a number (1.5).

A squiggle: the wave height, in px (1 to 10; 2.5 is usual).

Takes: auto, flow, annotation.

An arrow in an animation: flow (it moves electrons) or annotation (a mark); auto: from what it is attached to.

Takes: a number (1.5).

A bracket: the room on all four sides, in bonds (-0.2 to 0.6), as the Padding slider.

Takes: a number (1.5).

A bracket: a square bracket’s caps, in px (0 to 20; 0 is auto).

Takes: a number (1.5).

A bracket: a round bracket’s bow, in % of its height (0 to 30).

Takes: a number (1.5).

A bracket: a curly bracket’s middle tip, in % of its height (0 to 25).

Takes: a number (1.5).

A bracket: a curly bracket’s end curl, in % of its height (0 to 25).

Takes: a word or “quoted text”.

A bracket: a polymer bracket: the copolymer label (co, ran, alt, b).

Takes: a color name or “#rrggbb” or none.

A shape: its fill color, or none.

Takes: a number (1.5).

A filled shape: its fill’s opacity, 0 to 1.

Takes: a length (2 bond, 12 pt).

A rectangle or rounded callout: its corner radius, in bonds.

Takes: a number (1.5).

A shape, arrow, or bracket: its line’s opacity, 0.05 to 1.

Takes: a point (x, y).

A shape: its width and height in bonds, about its center: shape-size: (2, 1.5).

Takes: a number (1.5).

A bond of a ring with its circle: the circle’s size, a part of the ring (0.2 to 0.9; 0.6 is usual).

Takes: a color name or “#rrggbb” or none.

A bond of a ring with its circle: the circle’s color (none: the bond color).

Takes: on, off.

A bond of a ring with its circle: the circle dashed.

Takes: on, off.

An aromatic bond (bond-style: aromatic): an arc drawn over every aromatic bond joined to it.

Takes: dashed, solid.

An aromatic bond showing its arc: the arc dashed or solid.

Takes: a number (1.5).

An aromatic bond showing its arc: how far the arc bows (0 to 2; 0.87 is usual).

Takes: a color name or “#rrggbb” or none.

An aromatic bond showing its arc: the arc color (none: the bond color).

Takes: a word or “quoted text”.

A generic atom (R, X): its members, library groups or [*] SMILES: “Me, Et, Ph”; none takes them off.

Takes: on, off.

A bond: the point-of-attachment squiggle across it, at its open end (Add Attachment Point), or off.

Takes: a length (2 bond, 12 pt) (a number alone: bond).

A bond (a part): its length, 0.2 to 5 bond; a chain bond moves its lighter side, a ring bond scales its ring system.

Takes: hatch, crosshatch, dots, none.

A shape: lines or dots over its fill color; none takes them off.

Takes: a color name or “#rrggbb” or none.

A shape: its fill fading left to right from the fill color to this one; none takes it off.

Takes: on, off.

A shape, arrow, or bracket: a soft drop shadow.

Takes: a color name or “#rrggbb” or none.

A shape, arrow, or bracket: a glow of this color round it.

Takes: a point (x, y).

A plain text: a text box of this width and height in bonds, its words wrapped in it (then border: and background: draw).

Takes: an angle (90 deg).

A text: its turn in degrees, clockwise (absolute; rotate by: turns it from where it is).

Takes: a color name or “#rrggbb” or none.

A LaTeX text: a line round its box (none takes it off).

Takes: a length (2 bond, 12 pt) (a number alone: px).

A LaTeX text: its border line width (px).

Takes: a word or “quoted text”.

A molecule: what it is, in a sentence (an SVG export writes it into the file); an animation: its description (Animation properties); "" clears it.

Takes: a word or “quoted text”.

An animation: its export file name (Animation properties).

Takes: a whole number or a list of them ([1, 3]).

An animation: its panes in a new order, by number: ‘pane-order: [2, 1, 3]’.

Takes: atoms, frame.

An animation: what a molecule turns about between panes: atoms (the shared atoms) or frame (the frame center).

Takes: auto, after-arrows.

A text, shape, or arrow in an animation pane: auto, or after-arrows (once its pane’s arrows have drawn).

Takes: a word or “quoted text”.

A molecule: notes kept with it.

Takes: a word or “quoted text”.

A molecule: its other names, separated by commas.

Show a display feature: lone pairs, atom numbers, stereo labels (R/S, E/Z), implicit hydrogens, dipole arrows, aromatic circles, NMR signal letters; on a 3D view, hydrogens, a vibration, the ESP map, a surface or the hybrid orbitals.

show <feature> [options]

Argument (required): one of lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface, or orbitals.

Option Takes Default
of: a name, set “S”, a list, or all all
numbering: auto, iupac auto
kind: 1h, 13c, vdw, sas, ms 1h
diastereotopic: separate, merged separate
band: a number (1.5)
atoms: central, all
place: on, beside
palette: textbook, warm, phases, cvd, grey, gray
finish: semisoft, semi-soft, soft, matte, glossy, satin
terminal: ao, sp, full
only: all, bonds, lone-pairs, pi
model: expanded, octet
source: textbook, computed
pi: separate, merged
form: a number (1.5)
twist: a whole number
mo: a word or “quoted text”

Option rules (Check and Run both apply them):

  • stereo-labels, implicit-h: of: all only
  • lone-pairs, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface, orbitals: numbering: auto only
  • lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, hydrogens, vibration, esp, orbitals: kind: 1h only
  • nmr-signals: kind: 1h or 13c only
  • surface: kind: 1h, vdw, sas, or ms only
  • lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, hydrogens, vibration, esp, orbitals: diastereotopic: separate only
  • band: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, esp, surface, orbitals (band: is for a vibration on a 3D view: show vibration of: water-3d band: 1540)
  • palette: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (palette: is for orbitals on a 3D view: show orbitals of: water-3d palette: phases)
  • finish: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (finish: is for orbitals on a 3D view: show orbitals of: water-3d finish: glossy)
  • model: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (model: is for orbitals on a 3D view: show orbitals of: water-3d model: octet)
  • source: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (source: is for orbitals on a 3D view: show orbitals of: water-3d source: computed)
  • pi: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (pi: is for orbitals on a 3D view: show orbitals of: ozone-3d pi: merged)
  • form: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (form: is for orbitals on a 3D view: show orbitals of: ozone-3d form: 2)
  • mo: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (mo: is for orbitals on a 3D view: show orbitals of: water-3d mo: HOMO)
  • only: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (only: is for orbitals on a 3D view: show orbitals of: water-3d only: bonds)
  • terminal: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (terminal: is for orbitals on a 3D view: show orbitals of: water-3d terminal: sp)
  • twist: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface (twist: is for orbitals on a 3D view: show orbitals of: ethene-3d twist: 90)
  • place: does not apply to lone-pairs, atom-numbers, stereo-labels, implicit-h, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface, orbitals (place: is for the dipole arrow: show dipole of: water place: beside)

Makes: nothing new; it changes what is there.

Example: show dipole of: water

Takes: a name, set “S”, a list, or all. Default: all.

An object, a set, a list, or all (stereo-labels and implicit-h: all only).

Takes: auto, iupac. Default: auto.

Atom-numbers: auto (from one end) or iupac (the parent chain or ring by the IUPAC rules; a molecule they do not cover is refused with the reason).

Takes: 1h, 13c, vdw, sas, ms. Default: 1h.

Nmr-signals: letter the sets of equivalent H (1h) or C (13c); surface on a 3D view: vdw (van der Waals, the default), sas (solvent-accessible) or ms (molecular).

Takes: separate, merged. Default: separate.

Nmr-signals: merged counts two H on one sp3 carbon (and two methyls on one carbon) as one, as intro books do.

Takes: a number (1.5).

Vibration on a 3D view: the band in cm-1 (the nearest one in the saved IR spectrum of its molecule).

Takes: central, all.

Lone-pairs on a 3D view: central atoms only (VSEPR), or all (terminal atoms too).

Takes: on, beside.

Dipole: on the molecule (the default) or beside it, as textbook VSEPR figures draw it.

Takes: textbook, warm, phases, cvd, grey, gray.

Orbitals on a 3D view: the colors (textbook; warm: all orange; phases: red / blue; cvd: safe for color-vision deficiency; gray).

Takes: semisoft, semi-soft, soft, matte, glossy, satin.

Orbitals on a 3D view: the surface finish (semisoft by default).

Takes: ao, sp, full.

Orbitals on a 3D view: how an atom with one bond is drawn: ao (the default: unhybridized, its own s and p), sp (one lone pair in an sp hybrid pointing outward), full (hybridized by its electron domains, as many books do).

Takes: all, bonds, lone-pairs, pi.

Orbitals on a 3D view: only the sigma bonds, the lone pairs or the pi orbitals solid, the rest see-through (all: every orbital; as the 3D panel Show choice).

Takes: expanded, octet.

Orbitals on a 3D view of a hypervalent molecule: expanded (sp3d / sp3d2 hybrids) or octet (three-center four-electron bonds, no d orbitals).

Takes: textbook, computed.

Orbitals on a 3D view: textbook hybrids, or computed (GFN2-xTB, localized; needs the calculation helper; closed-shell molecules only, so not a radical).

Takes: separate, merged.

Orbitals on a 3D view: the p orbitals of a pi system apart (separate) or merged into one cloud (the resonance hybrid).

Takes: a number (1.5).

Orbitals on a 3D view: one resonance form (1, 2, …): its pi bonds merged, the other p holding lone pairs or empty.

Takes: a whole number.

Orbitals on a 3D view: turn one end of a double bond by 0 to 90 degrees (the p orbitals turn with it; at 90 they are crossed and the pi bond is broken).

Takes: a word or “quoted text”.

Computed orbitals on a 3D view: one molecular orbital (HOMO, HOMO-1, LUMO, LUMO+1, …), or localized (the bonds and lone pairs).

Hide a display feature (the same features as show).

hide <feature> [options]

Argument (required): one of lone-pairs, atom-numbers, stereo-labels, implicit-h, dipole, aromatic-circles, nmr-signals, hydrogens, vibration, esp, surface, or orbitals.

Option Takes Default
of: a name, set “S”, a list, or all all

Option rules (Check and Run both apply them):

  • stereo-labels, implicit-h: of: all only

Makes: nothing new; it changes what is there.

Example: hide lone-pairs of: benzene

Takes: a name, set “S”, a list, or all. Default: all.

An object, a set, a list, or all.

Draw an arrow between two objects (between their facing edges), labeled above or below; or, between parts, a curved mechanism arrow from a lone pair or bond to an atom or bond.

arrow [options]
Option Takes Default
from: (required) a name, set “S”, a list, or all
to: (required) a name, set “S”, a list, or all
through: a list of points [(0, 0), (0.87, -0.5)]
handles: a list of points [(0, 0), (0.87, -0.5)]
kind: straight, equilibrium, resonance, retrosynthesis, curved, bent, squiggle, arc straight between objects, curved between parts
favors: products, reactants
short: a number (1.5) 0.6
head-size: a length (2 bond, 12 pt) (a number alone: px) the Arrow tool’s
head-sharpness: a number (1.5) 2
head-color: a color name or “#rrggbb” the line color
start-head: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down none (both for kind: resonance)
line-width: a length (2 bond, 12 pt) (a number alone: px) the Arrow tool’s
line-opacity: a number (1.5)
shadow: on, off
glow: a color name or “#rrggbb” or none
head: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down filled
label: a word or “quoted text”
label-below: a word or “quoted text”
bow: auto, left, right, bigger, smaller auto
s: more, less
dash: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash solid
name: a name arrow-1, arrow-2, …
harpoon-shift: a number (1.5)
arrow-gap: a number (1.5)
top-length: a length (2 bond, 12 pt) (a number alone: bond)
bottom-length: a length (2 bond, 12 pt) (a number alone: bond)
top-color: a color name or “#rrggbb”
bottom-color: a color name or “#rrggbb”
sharp-points: on, off
retro-angle: a number (1.5)
retro-curve: a number (1.5)
squiggle-waves: a whole number
squiggle-height: a number (1.5)
anim-role: auto, flow, annotation

Option rules (Check and Run both apply them):

  • harpoon-shift: needs favors:, top-length:, or bottom-length:
  • harpoon-shift: needs kind: equilibrium
  • arrow-gap: needs kind: equilibrium or retrosynthesis
  • retro-angle: needs kind: retrosynthesis
  • retro-curve: needs kind: retrosynthesis
  • squiggle-waves: needs kind: squiggle
  • squiggle-height: needs kind: squiggle
  • top-length: needs kind: equilibrium
  • bottom-length: needs kind: equilibrium
  • top-color: needs kind: equilibrium
  • bottom-color: needs kind: equilibrium
  • top-length: cannot be used with favors: products or reactants
  • bottom-length: cannot be used with favors: products or reactants

Makes: an arrow centered between the two objects, as long as the Arrow tool draws on a click (longer for a label), at least 0.3 bond length clear of each; between parts, a curved mechanism arrow attached at both ends. Named arrow-1, arrow-2, …; last is the arrow.

Takes: a name, set “S”, a list, or all.

The object (or set) the arrow starts at; a curved arrow: a lone pair (hydroxide.O.lone-pair1) or a bond (bromomethane.bond(C, Br)); a free arrow: a point in bonds from the canvas origin, from: (2, 3) to: (6, 3).

Takes: a name, set “S”, a list, or all.

The object (or set) it points to; a curved arrow: an atom (bromomethane.C) or a bond; a free arrow: a point, as from:.

Takes: a list of points [(0, 0), (0.87, -0.5)].

A straight arrow between points: the points its line bends at, in order: through: [(3, 1), (4, 3)].

Takes: a list of points [(0, 0), (0.87, -0.5)].

An arrow between points drawn as a curve: two points are its Bezier handles (from the start, into the end), one is a quadratic curve’s control point: handles: [(2, 0), (4, 0)].

Takes: straight, equilibrium, resonance, retrosynthesis, curved, bent, squiggle, arc. Default: straight between objects, curved between parts.

Straight: a reaction arrow; equilibrium: a double harpoon; resonance: double-headed; retrosynthesis: the open double-shafted arrow (the target to its precursors); curved: a mechanism arrow between parts (attached, as the Arrow tool draws one); bent: one square corner, for objects that are not side by side; squiggle: a wavy line with no heads (the point-of-attachment mark); arc: half a circle from one point to the other.

Takes: products, reactants.

Kind: equilibrium: the long harpoon on that side, the other 60 % as long (it keeps that ratio when resized).

Takes: a number (1.5). Default: 0.6.

With favors: the short harpoon as a part of the long one.

Takes: a length (2 bond, 12 pt) (a number alone: px). Default: the Arrow tool’s.

The width of its heads (px; their sharpness kept); an equilibrium arrow: both heads.

Takes: a number (1.5). Default: 2.

Head length over head width.

Takes: a color name or “#rrggbb”. Default: the line color.

Its heads in their own color.

Takes: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down. Default: none (both for kind: resonance).

The head at its start, in the words of head: (a single arrow).

Takes: a length (2 bond, 12 pt) (a number alone: px). Default: the Arrow tool’s.

Its line width (a number alone is in px).

Takes: a number (1.5).

Its line’s opacity, 0.05 to 1.

Takes: on, off.

A soft drop shadow.

Takes: a color name or “#rrggbb” or none.

A glow of this color round it.

Takes: none, filled, vee, hollow, harpoon-up, harpoon-down, half-up, half-down. Default: filled.

The head at the arrow’s end: none (a plain line); filled; vee (an open V); hollow (an outlined triangle); harpoon-up / -down (one barb); half-up / -down (a rounded half head, for a fishhook).

Takes: a word or “quoted text”.

A text above the arrow (to the left of its direction): “quoted”, or $…$ LaTeX ($\mathrm{H_3O^+}$).

Takes: a word or “quoted text”.

A text under the arrow, as label:.

Takes: auto, left, right, bigger, smaller. Default: auto.

A curved arrow: the side it bulges to, seen from its start (left or right; auto is Molkit’s choice), then bigger or smaller in steps of 15%: bow: [right, bigger, bigger].

Takes: more, less.

A curved arrow drawn as an S: its lobes 15% bigger (more) or smaller (less) per step: s: [more, more].

Takes: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash. Default: solid.

The stem pattern (heads stay solid).

Takes: a name. Default: arrow-1, arrow-2, …

The name the arrow gets.

Takes: a number (1.5).

An equilibrium: the short harpoon slid along the long one, in % (-100 to 100).

Takes: a number (1.5).

An equilibrium or retrosynthesis arrow: the gap between its two lines, in px (1 to 20).

Takes: a length (2 bond, 12 pt) (a number alone: bond).

An equilibrium that favors neither side: its top arrow’s length, in bonds.

Takes: a length (2 bond, 12 pt) (a number alone: bond).

An equilibrium that favors neither side: its bottom arrow’s length, in bonds.

Takes: a color name or “#rrggbb”.

An equilibrium: its top arrow’s line color.

Takes: a color name or “#rrggbb”.

An equilibrium: its bottom arrow’s line color.

Takes: on, off.

An arrow’s heads drawn with sharp points.

Takes: a number (1.5).

A retrosynthesis arrow: its open head’s angle, in degrees (15 to 60; 35 is usual).

Takes: a number (1.5).

A retrosynthesis arrow: its head drawn curved, by this % (5 to 45; 0 is straight).

Takes: a whole number.

A squiggle: how many waves (2 to 12; 7 is usual).

Takes: a number (1.5).

A squiggle: the wave height, in px (1 to 10; 2.5 is usual).

Takes: auto, flow, annotation.

An arrow in an animation: flow (it moves electrons) or annotation (a mark); auto: from what it is attached to.

Put bonds that are slightly off a multiple of 15° exactly on that angle, as Structure > Straighten Bonds does (whole molecules only).

straighten <object>

Argument (required): a name (water), a list ([water, ammonia]), a set (set "Water"), or all. all must be on its own, not in a list.

Makes: nothing new; it changes what is there.

Example: straighten water

Tidy a drawing as Structure > Clean Up does: even bond lengths, 120° zig-zags and branch points, straight sp centers, overlapping atoms pushed apart. Only the molecules named (or all). A condensed, Fischer, or VSEPR view is left as it is, and the result says so.

cleanup <object>

Argument (required): a name (water), a list ([water, ammonia]), a set (set "Water"), or all. all must be on its own, not in a list.

Makes: nothing new; it changes what is there.

Example: cleanup aspirin

Turn an object, a set, or a list about its center, as the Rotate tool does (attached arrows follow).

rotate <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
by: an angle (90 deg) 90 deg

Makes: nothing new; it changes what is there.

Example: rotate water by: 90 deg

Takes: an angle (90 deg). Default: 90 deg.

A positive angle turns counterclockwise, a negative one clockwise (a number alone is in deg).

Mirror an object, a set, or a list about its center, as Flip Horizontal and Flip Vertical do (wedges and labels follow).

flip <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
direction: horizontal, vertical horizontal

Makes: nothing new; it changes what is there.

Example: flip ethanol direction: horizontal

Takes: horizontal, vertical. Default: horizontal.

Horizontal: left and right swap; vertical: top and bottom swap.

Save the whole document as an .mkit file, as File > Save writes it; the file is ready to save when the run succeeds.

save [options]
Option Takes Default
file: a word or “quoted text” “untitled.mkit”

Makes: nothing; it only reports (no undo step).

Takes: a word or “quoted text”. Default: “untitled.mkit”.

The file name (.mkit is added when missing).

Resize an object, a set, or a list about its center, as Resize Selection does: its bonds grow or shrink; its texts and marks move with it.

scale <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
by: (required) a number (1.5)

Makes: nothing new; it changes what is there.

Example: scale water by: 1.5

Takes: a number (1.5).

The factor: 1.5 is half again as large, 0.5 half the size.

Set the document’s structure preset, as Structure Settings does (bond length, fonts, line widths). The drawing is resized to the new bond length, and objects with their own sizes scale with it; the script never stops to ask.

preset <preset>

Argument (required): one of traditional, compact, textbook, acs1996, beilstein, frontiers, rsc, nature, cell, or thieme.

Makes: nothing new; it changes what is there.

Example: preset compact

Set the document’s element color scheme, as Structure Settings does, and the color of single elements on top of it.

colors [<scheme>] [options]

Argument (optional): one of simple, black-white, cpk, colorblind, wcag, or publication.

Option Takes Default
element: a list of pairs [[HA, acetic-acid]]

Option rules (Check and Run both apply them):

  • at least one of element:

Makes: nothing new; it changes what is there.

Example: colors simple

Takes: a list of pairs [[HA, acetic-acid]].

Single elements’ colors, after the scheme: an element symbol and a color name or a quoted hex value; turns color by element on.

Move an object or a set to a point, or below, above, left of, or right of another object (a gap apart).

place <object> [options]

Argument (required): a name (water) or a set (set "Water").

Option Takes Default
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of
by: a point (x, y)

Option rules (Check and Run both apply them):

  • exactly one of at:, below:, above:, left-of:, right-of:, beside:, by:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • not below:, above:, left-of:, right-of:, beside: the object itself

Makes: nothing new; it changes what is there.

Example: place caption below: set "Ammonia" gap: 1 bond align: left

Takes: a name, set “S”, a list, or all.

An object, a set, or a list: the first side with room (right, below, left, above).

Takes: a length (2 bond, 12 pt). Default: 1.5 bond.

The space between the boxes around the two objects.

Takes: left, center, right, top, middle, bottom. Default: center above / below, middle left-of / right-of.

Which edges line up.

Takes: a point (x, y).

A step from where it is, in bonds: by: (0.5, -1) (x right, y down).

Line up the edges (or centers) of objects and sets on the matching edge (or center) of the whole group.

align <list> [options]

Argument (required): a list ([water, ammonia]).

Option Takes Default
edge: (required) left, center, right, top, middle, bottom

Makes: nothing new; it changes what is there.

Example: align [water, ammonia, caption] edge: left

Takes: left, center, right, top, middle, bottom.

Which edge or center.

Make the gaps between three or more objects equal (the outer two stay where they are).

distribute <list> [options]

Argument (required): a list ([water, ammonia]). At least 3 items.

Option Takes Default
direction: horizontal, vertical horizontal

Makes: nothing new; it changes what is there.

Example: distribute [a, b, c] direction: horizontal

Takes: horizontal, vertical. Default: horizontal.

Horizontal: along x; vertical: along y.

Give an object a new name (its title follows when the title came from the old name).

rename <name> [options]

Argument (required): a name (water).

Option Takes Default
to: (required) a name

Makes: nothing new; it changes what is there.

Example: rename water to: solvent

Takes: a name.

The new name (one word, not taken).

Draw a group label out as its atoms: an atom with a label (expand toluene.C1: its “COOH” becomes C, O, O, and H), or every group label of a molecule (expand toluene). A collapsed group gets its own atoms back. Part names are numbered again.

expand <object>

Argument (required): a name (water), a part (water.O), or a list ([water, ammonia]).

Makes: nothing new; it changes what is there.

Example: expand toluene.C1

List every stereoisomer of a molecule and draw them. A captioned grid goes below everything, as Structure > Stereoisomers draws it: descriptors, meso and achiral forms, enantiomers side by side.

isomers [<object>] [options]

Argument (optional): a name (water).

Option Takes Default
kind: stereo stereo
keep: none, drawn none
pick: a whole number or a list of them ([1, 3])
draw: on, off on
smiles: a word or “quoted text”

Makes: the stereoisomers, named -iso1, -iso2, …; last is the last one drawn.

Example: isomers tartaric-acid kind: stereo

Takes: stereo. Default: stereo.

Stereo: the stereoisomers (other kinds are not built).

Takes: none, drawn. Default: none.

Drawn: vary only what the drawing leaves undefined.

Takes: a whole number or a list of them ([1, 3]).

Draw only these, by number: pick: [1, 3].

Takes: on, off. Default: on.

Off: list them only.

Takes: a word or “quoted text”.

The molecule as SMILES instead of a name.

Collapse groups into labels: every common group of a molecule (Boc, TBS, Ph: three or more heavy atoms), or the atoms listed under label:.

contract <object> [options]

Argument (required): a name (water), a part (water.O), or a list ([water, ammonia]).

Option Takes Default
label: a word or “quoted text”

Makes: nothing new; it changes what is there.

Example: contract [x.C5, x.O2, x.C6] label: "OEt"

Takes: a word or “quoted text”.

The label for the atoms listed; they must be that group.

List the structure warnings (valence, charge) and layout warnings (overlaps, past the margin) for objects, or for every molecule. Changes nothing.

check [<object>]

Argument (optional): a name (water), a list ([water, ammonia]), or a set (set "Water").

Makes: nothing; it only reports (no undo step).

Example: check water

Say how two molecules are related: identical, conformers, enantiomers, diastereomers, constitutional isomers, or not isomers. Changes nothing.

compare <object>

Argument (required): a name (water) or a list ([water, ammonia]).

Makes: nothing; it only reports (no undo step).

Example: compare [lactic-acid, lactic-acid-mirror]

Draw the mirror image beside a molecule. A dashed mirror line goes between them, as Structure > Draw Mirror Image draws it: R and S swap, E and Z stay.

mirror <object> [options]

Argument (required): a name (water).

Option Takes Default
line: on, off on
name: a name -mirror

Makes: the mirror image, named -mirror; last is the mirror image.

Example: mirror lactic-acid

Takes: on, off. Default: on.

The dashed mirror line between the two.

Takes: a name. Default: -mirror.

The name of the mirror image.

Color in rings. Fills lie under the bonds, as Right-click > Fill Ring makes them: one ring (fill benzene.ring(C1); ring(C1, C2) when C1 is in two), its fused system (extent: system), or every ring of a molecule (fill naphthalene; rings: aromatic for the aromatic ones). Each fill is named fill-1, fill-2, … and follows its ring; change fill-1 and delete fill-1 reach it.

fill <object> [options]

Argument (required): a name (water) or a part (water.O).

Option Takes Default
rings: all, aromatic all
extent: ring, system ring
palette: one, each one
color: a color name or “#rrggbb” #4f86c6
opacity: a number (1.5) 0.3
pattern: none, hatch, crosshatch none
gradient: none, linear, radial none
inset: a length (2 bond, 12 pt) (a number alone: bond) 0 bond
rounding: a number (1.5) 0
name: a name fill-1, fill-2, …

Makes: ring fills named fill-1, fill-2, …; each follows its ring.

Example: fill benzene.ring(C1)

Takes: all, aromatic. Default: all.

A molecule: every ring, or only the aromatic ones.

Takes: ring, system. Default: ring.

A ring: that ring alone, or every ring of its fused system.

Takes: one, each. Default: one.

One: every ring the same color; each: each ring of a fused system its own color.

Takes: a color name or “#rrggbb”. Default: #4f86c6.

The fill color (a color name or a quoted hex value).

Takes: a number (1.5). Default: 0.3.

How strongly the color shows, 0.05 to 1.

Takes: none, hatch, crosshatch. Default: none.

Lines over the color, so the rings stay apart in a grayscale print.

Takes: none, linear, radial. Default: none.

From the color to white.

Takes: a length (2 bond, 12 pt) (a number alone: bond). Default: 0 bond.

How far the fill stays inside the bond lines, 0 to 0.5 bond.

Takes: a number (1.5). Default: 0.

Its corners, 0 (sharp) to 1 (round).

Takes: a name. Default: fill-1, fill-2, …

The name of the fill (one ring only).

Delete objects: a name, a list of names, a set or a group (its members stay), all, or all.sets (every set; the members stay); or a part: an atom (with its bonds), a bond, or a lone pair.

delete <object>

Argument (required): a name (water), a part (water.O), a list ([water, ammonia]), a set (set "Water"), all, or all.sets. all and all.sets must be on their own, not in a list.

Makes: nothing new; it changes what is there.

Example: delete water

Set the document’s paper size, orientation, margins, guides, and paged or infinite mode, as File > Page Setup does.

page [options]
Option Takes Default
size: letter, a4, a3, legal, tabloid, b5, executive letter
orientation: portrait, landscape portrait
margins: normal, narrow, wide, none normal
mode: paged, infinite infinite
page-guides: on, off on
margin-guides: on, off off

Option rules (Check and Run both apply them):

  • at least one of size:, orientation:, margins:, mode:, page-guides:, margin-guides:

Makes: nothing new; it changes what is there.

Takes: letter, a4, a3, legal, tabloid, b5, executive. Default: letter.

The paper.

Takes: portrait, landscape. Default: portrait.

The paper upright or on its side.

Takes: normal, narrow, wide, none. Default: normal.

Normal (1 in), narrow (0.5 in), wide (1 in, 1.5 in at the sides) or none.

Takes: paged, infinite. Default: infinite.

Paged: the drawing on pages (page 1 centered on it); infinite: the open canvas.

Takes: on, off. Default: on.

The page edges drawn.

Takes: on, off. Default: off.

The margins drawn.

Set the document title, author, description, and notes, as File > Document metadata does (an SVG export of All Content uses the description for screen readers; a PDF export, the title and description).

document [options]
Option Takes Default
title: a word or “quoted text”
author: a word or “quoted text”
description: a word or “quoted text”
notes: a word or “quoted text”

Option rules (Check and Run both apply them):

  • at least one of title:, author:, description:, notes:

Makes: nothing new; it changes what is there.

Takes: a word or “quoted text”.

The document title.

Takes: a word or “quoted text”.

Who made it.

Takes: a word or “quoted text”.

What the drawing shows, in a sentence or two ("" clears it).

Takes: a word or “quoted text”.

Notes kept with the file.

Set Structure Settings rows for the document, as the Structure Settings dialog does: bond lines, lone pairs, radicals, charges, the label font.

settings [options]
Option Takes Default
bond-length: a length (2 bond, 12 pt) (a number alone: px)
bond-width: a length (2 bond, 12 pt) (a number alone: px)
label-font: a word or “quoted text”
carbon-labels: on, off
lone-pair-look: dots, lines, lobes
radicals: shown, hidden
charge-look: superscript, circle
bond-colors: element, plain
line-cap: butt, round
bold-join: flush, taper
double-gap: a length (2 bond, 12 pt) (a number alone: px)
triple-gap: a length (2 bond, 12 pt) (a number alone: px)
wedge-width: a length (2 bond, 12 pt) (a number alone: px)
hash-lines: a whole number
hash-spacing: a length (2 bond, 12 pt) (a number alone: px)
wavy-height: a length (2 bond, 12 pt) (a number alone: px)
crossing-gap: a length (2 bond, 12 pt) (a number alone: px)
label-clearance: a length (2 bond, 12 pt) (a number alone: px)
lone-pair-size: a length (2 bond, 12 pt) (a number alone: px)
lone-pair-spacing: a length (2 bond, 12 pt) (a number alone: px)
lone-pair-distance: a length (2 bond, 12 pt) (a number alone: px)
radical-look: dots, lines, lobes
radical-size: a length (2 bond, 12 pt) (a number alone: px)
radical-distance: a length (2 bond, 12 pt) (a number alone: px)
charge-size: a number (1.5)

Option rules (Check and Run both apply them):

  • at least one of bond-length:, bond-width:, label-font:, carbon-labels:, lone-pair-look:, radicals:, charge-look:, bond-colors:, line-cap:, bold-join:, double-gap:, triple-gap:, wedge-width:, hash-lines:, hash-spacing:, wavy-height:, crossing-gap:, label-clearance:, lone-pair-size:, lone-pair-spacing:, lone-pair-distance:, radical-look:, radical-size:, radical-distance:, charge-size:

Makes: nothing new; it changes what is there.

Takes: a length (2 bond, 12 pt) (a number alone: px).

The bond length, 15 to 80 px (before anything is drawn; scale resizes a drawing).

Takes: a length (2 bond, 12 pt) (a number alone: px).

The bond line width (px).

Takes: a word or “quoted text”.

The atom labels’ font: “Helvetica”.

Takes: on, off.

Show Carbon Labels for the whole document: every carbon written as C (on) or bare (off).

Takes: dots, lines, lobes.

Lone pairs as two dots, a line (IUPAC allows both) or a lobe.

Takes: shown, hidden.

Radical electrons shown or hidden (Structure > Display > Show Radicals).

Takes: superscript, circle.

A charge on an atom as a superscript sign or circled (the charge after an ion’s bracket keeps its sign).

Takes: element, plain.

Bonds colored by their atoms’ elements, or plain.

Takes: butt, round.

The bond line ends.

Takes: flush, taper.

How a bold bond meets its neighbors.

Takes: a length (2 bond, 12 pt) (a number alone: px).

The space between a double bond’s lines (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

The space between a triple bond’s lines (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

A wedge’s wide end (px).

Takes: a whole number.

The lines in a hashed wedge.

Takes: a length (2 bond, 12 pt) (a number alone: px).

The space between a hash’s lines (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

A wavy bond’s wave height (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

The gap where a bond passes behind another (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

The space a bond leaves around an atom label (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

A lone pair dot’s size (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

The space between a pair’s two dots (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

How far a pair sits from its atom (px).

Takes: dots, lines, lobes.

Radical electrons as dots, lines or lobes.

Takes: a length (2 bond, 12 pt) (a number alone: px).

A radical dot’s size (px).

Takes: a length (2 bond, 12 pt) (a number alone: px).

How far a radical dot sits from its atom (px).

Takes: a number (1.5).

A charge sign’s size, as a factor of the label size.

Draw a Shape tool shape around objects or at a place: an ellipse, a star, a callout, a cube, with its fill and line.

shape <kind> [options]

Argument (required): one of rectangle, ellipse, triangle, right-triangle, diamond, hexagon, star, parallelogram, chevron, arrow-block, double-arrow-block, curved-arrow-block, u-turn-arrow, cross, cube, cylinder, cone, sphere, pyramid, callout-rect, callout-rounded, callout-oval, cloud, or arc.

Option Takes Default
around: a name, set “S”, a list, or all
padding: a length (2 bond, 12 pt) 0.4 bond
at: a point (x, y)
size: a point (x, y)
fill: a color name or “#rrggbb” or none none (gray for the 3D solids)
fill-opacity: a number (1.5)
color: a color name or “#rrggbb” black
dash: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash solid
line-width: a length (2 bond, 12 pt) (a number alone: px)
line-opacity: a number (1.5)
corner: a length (2 bond, 12 pt)
turn: an angle (90 deg)
start-angle: an angle (90 deg)
end-angle: an angle (90 deg)
name: a name shape-1, shape-2, …
fill-pattern: hatch, crosshatch, dots, none
gradient-to: a color name or “#rrggbb” or none
shadow: on, off
glow: a color name or “#rrggbb” or none

Option rules (Check and Run both apply them):

  • exactly one of around:, at:
  • at: needs size:
  • size: needs at:
  • padding: needs around:
  • fill-opacity: needs fill:, fill-pattern:, or gradient-to: (not with cube, cylinder, cone, sphere, pyramid)
  • corner: does not apply to ellipse, triangle, right-triangle, diamond, hexagon, star, parallelogram, chevron, arrow-block, double-arrow-block, curved-arrow-block, u-turn-arrow, cross, cube, cylinder, cone, sphere, pyramid, callout-rect, callout-oval, cloud (corner: rounds a rectangle or a callout-rounded only; the {subject} shape has no corners to round)

Makes: the shape [name: shape-1]; last is the shape.

Example: shape ellipse around: [ethanol.C1, ethanol.O] fill: "#ffee88" fill-opacity: 0.4

Takes: a name, set “S”, a list, or all.

The objects or atoms it goes around (padding: clear on every side).

Takes: a length (2 bond, 12 pt). Default: 0.4 bond.

With around: the space on every side.

Takes: a point (x, y).

Its top-left corner, in bonds (with size:).

Takes: a point (x, y).

Its width and height in bonds (with at:): size: (2, 1.5).

Takes: a color name or “#rrggbb” or none. Default: none (gray for the 3D solids).

A color name, a quoted hex value, or none.

Takes: a number (1.5).

The fill’s opacity, 0 to 1.

Takes: a color name or “#rrggbb”. Default: black.

The line’s color.

Takes: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash. Default: solid.

The line’s pattern.

Takes: a length (2 bond, 12 pt) (a number alone: px).

The line’s width (px).

Takes: a number (1.5).

The outline’s opacity, 0.05 to 1.

Takes: a length (2 bond, 12 pt).

A rounded corner’s radius, in bonds.

Takes: an angle (90 deg).

Turned by this angle, clockwise, as its rotate handle turns it: turn: 30 deg.

Takes: an angle (90 deg).

An arc: where it starts, degrees clockwise from pointing right [0].

Takes: an angle (90 deg).

An arc: where it ends [180].

Takes: a name. Default: shape-1, shape-2, …

The name the shape gets.

Takes: hatch, crosshatch, dots, none.

A shape: lines or dots over its fill color; none takes them off.

Takes: a color name or “#rrggbb” or none.

A shape: its fill fading left to right from the fill color to this one; none takes it off.

Takes: on, off.

A shape, arrow, or bracket: a soft drop shadow.

Takes: a color name or “#rrggbb” or none.

A shape, arrow, or bracket: a glow of this color round it.

Draw a Fischer, Newman, Haworth, chair, or boat projection, as the Projection tool does; a Newman can look down a bond of a drawn molecule.

projection <kind> [options]

Argument (required): one of fischer, newman, haworth, chair, or boat.

Option Takes Default
of: a name, set “S”, a list, or all
dihedral: an angle (90 deg) 60 deg
front: a word or a list [a, b] [H, H, H]
back: a word or a list [a, b] [H, H, H]
centers: a whole number 2
ring: pyranose, furanose pyranose
flipped: on, off off
name: a name newman-1, chair-1, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of
center-labels: on, off
rs-labels: on, off
numbering: none, top-down, bottom-up
dihedral-label: on, off
conformation-label: on, off
ring-width: a number (1.5)
color: a color name or “#rrggbb” or none
line-width: a length (2 bond, 12 pt) (a number alone: px)
bold-width: a number (1.5)
spacing: a number (1.5)
arm-length: a number (1.5)
crossing-style: continuous, break
radius: a number (1.5)
circle-width: a number (1.5)
circle-fill: none, white, canvas
back-bonds: truncated, full
eclipsed-offset: a number (1.5)
bond-length: a number (1.5)
conformation-label-size: a number (1.5)
conformation-label-color: a color name or “#rrggbb” or none
conformation-label-style: italic, plain, bold, bold-italic
center-dot: on, off
ring-height: a number (1.5)
sub-length: a number (1.5)
axial-length: a number (1.5)
equatorial-length: a number (1.5)
bold-front: on, off
labels: on, off

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:
  • of: does not apply to fischer, haworth, chair, boat (of: is for newman (the bond it looks down))
  • dihedral: does not apply to fischer, haworth, chair, boat (dihedral: is for newman)
  • front: does not apply to fischer, haworth, chair, boat (front: is for newman)
  • back: does not apply to fischer, haworth, chair, boat (back: is for newman)
  • centers: does not apply to newman, haworth, chair, boat (centers: is for fischer)
  • ring: does not apply to fischer, newman, chair, boat (ring: is for haworth)
  • flipped: does not apply to fischer, newman, haworth, boat (flipped: is for chair (a boat has no flip))
  • at most one of of:, dihedral:
  • at most one of of:, front:
  • center-labels: does not apply to newman, haworth, chair, boat (center-labels: is for fischer)
  • rs-labels: does not apply to newman, haworth, chair, boat (rs-labels: is for fischer)
  • numbering: does not apply to newman, haworth, chair, boat (numbering: is for fischer)
  • dihedral-label: does not apply to fischer, haworth, chair, boat (dihedral-label: is for newman)
  • conformation-label: does not apply to fischer, haworth, chair, boat (conformation-label: is for newman)
  • ring-width: does not apply to fischer, newman (ring-width: is for haworth or chair or boat)
  • color: does not apply to (color: is for fischer or newman or haworth or chair or boat)
  • line-width: does not apply to (line-width: is for fischer or newman or haworth or chair or boat)
  • bold-width: does not apply to fischer, newman (bold-width: is for haworth or chair or boat)
  • spacing: does not apply to newman, haworth, chair, boat (spacing: is for fischer)
  • arm-length: does not apply to newman, haworth, chair, boat (arm-length: is for fischer)
  • crossing-style: does not apply to newman, haworth, chair, boat (crossing-style: is for fischer)
  • radius: does not apply to fischer, haworth, chair, boat (radius: is for newman)
  • circle-width: does not apply to fischer, haworth, chair, boat (circle-width: is for newman)
  • circle-fill: does not apply to fischer, haworth, chair, boat (circle-fill: is for newman)
  • back-bonds: does not apply to fischer, haworth, chair, boat (back-bonds: is for newman)
  • eclipsed-offset: does not apply to fischer, haworth, chair, boat (eclipsed-offset: is for newman)
  • bond-length: does not apply to fischer, haworth, chair, boat (bond-length: is for newman)
  • conformation-label-size: does not apply to fischer, haworth, chair, boat (conformation-label-size: is for newman)
  • conformation-label-color: does not apply to fischer, haworth, chair, boat (conformation-label-color: is for newman)
  • conformation-label-style: does not apply to fischer, haworth, chair, boat (conformation-label-style: is for newman)
  • center-dot: does not apply to fischer, haworth, chair, boat (center-dot: is for newman)
  • ring-height: does not apply to fischer, newman, chair, boat (ring-height: is for haworth)
  • sub-length: does not apply to fischer, newman, chair, boat (sub-length: is for haworth)
  • axial-length: does not apply to fischer, newman, haworth (axial-length: is for chair or boat)
  • equatorial-length: does not apply to fischer, newman, haworth (equatorial-length: is for chair or boat)
  • bold-front: does not apply to fischer, newman, haworth (bold-front: is for chair or boat)
  • labels: does not apply to fischer, newman, haworth (labels: is for chair or boat)

Makes: the projection [name: newman-1, chair-1, …]; last is the projection.

Example: projection newman of: butane.bond(C2, C3)

Takes: a name, set “S”, a list, or all.

Newman: the bond to look down, of a drawn molecule (its groups and dihedral come from its 3D shape).

Takes: an angle (90 deg). Default: 60 deg.

Newman: the angle between the front and back groups (0 eclipsed, 60 gauche or staggered, 180 anti).

Takes: a word or a list [a, b]. Default: [H, H, H].

Newman: the front carbon’s three groups, clockwise from the top.

Takes: a word or a list [a, b]. Default: [H, H, H].

Newman: the back carbon’s three groups.

Takes: a whole number. Default: 2.

Fischer: how many stereocenters (1 to 4).

Takes: pyranose, furanose. Default: pyranose.

Haworth: a six-membered (pyranose) or five-membered (furanose) ring.

Takes: on, off. Default: off.

Chair: the other chair (ring flipped).

Takes: a name. Default: newman-1, chair-1, …

The name a script uses for it.

Takes: on, off.

Its stereocenter carbons labeled C.

Takes: on, off.

R / S by each stereocenter.

Takes: none, top-down, bottom-up.

Its carbons numbered from the top or the bottom.

Takes: on, off.

The dihedral angle written on it.

Takes: on, off.

Staggered / eclipsed / gauche / anti written under it.

Takes: a number (1.5).

Its ring width in px.

Takes: a color name or “#rrggbb” or none.

Every atom label and bond; a part: that atom (water.O) or bond (water.bond(O, H1)); a text: its color. A color name or a quoted hex value; none: back to the scheme’s.

Takes: a length (2 bond, 12 pt) (a number alone: px).

An arrow, box, bracket, or projection: its line width (px).

Takes: a number (1.5).

Its bold front edge width in px.

Takes: a number (1.5).

The spacing between its centers in px.

Takes: a number (1.5).

Its arm length in px.

Takes: continuous, break.

The vertical line drawn through each crossing, or broken at it.

Takes: a number (1.5).

Its circle radius in px.

Takes: a number (1.5).

Its circle’s line width in px.

Takes: none, white, canvas.

Its circle filled white, with the canvas color, or not.

Takes: truncated, full.

Its back bonds stopped at the circle, or drawn in full.

Takes: a number (1.5).

How far eclipsed back bonds are turned off the front ones, 30 to 60 degrees.

Takes: a number (1.5).

Its bond length in px.

Takes: a number (1.5).

The conformation label size in px.

Takes: a color name or “#rrggbb” or none.

The conformation label’s color (none: the line color).

Takes: italic, plain, bold, bold-italic.

The conformation label in italic (the usual), plain, bold, or bold italic.

Takes: on, off.

A dot at its center.

Takes: a number (1.5).

Its ring height in px.

Takes: a number (1.5).

Its substituent line length in px.

Takes: a number (1.5).

Its axial bond length in px.

Takes: a number (1.5).

Its equatorial bond length in px.

Takes: on, off.

Its front bonds drawn bold.

Takes: on, off.

Element labels on its atoms (the 3D panel’s Labels); a chair: its atom labels.

Put a computed result’s chart on the canvas, as a result window’s Insert into drawing does: a molecule’s IR spectrum, a mechanism animation’s energy profile, or a crystal’s powder pattern.

chart <object> [options]

Argument (required): a name (water).

Option Takes Default
name: a name ir-chart-1, path-chart-1, xrd-chart-1
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:

Makes: the chart, an image carrying the numbers [name: ir-chart-1, …]; last is the chart.

Example: chart water

Takes: a name. Default: ir-chart-1, path-chart-1, xrd-chart-1.

The name a script uses for it.

Scan the energy along one coordinate of a 3D view (a distance, an angle, or a dihedral), as the 3D viewer’s Energy scan does, and put the chart on the canvas.

scan <object> [options]

Argument (required): a name (water).

Option Takes Default
atoms: (required) a whole number or a list of them ([1, 3])
from: an angle (90 deg) for its kind (a dihedral: 0)
to: an angle (90 deg) for its kind (a dihedral: 360)
step: a number (1.5) for its kind (a dihedral: 15)
method: mmff, xtb mmff where it can (xtb for a bond stretch or a ring)
rigid: on, off off
animation: on, off off
name: a name scan-chart-1, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:

Makes: the scan chart, an image carrying the points [name: scan-chart-1, …]; last is the chart.

Example: scan ethane-3d atoms: [3, 1, 2, 6]

Takes: a whole number or a list of them ([1, 3]).

The coordinate: 2 atoms (a distance), 3 (an angle), or 4 (a dihedral), numbered as describe numbers the 3D view.

Takes: an angle (90 deg). Default: for its kind (a dihedral: 0).

Where the scan starts: degrees for an angle or dihedral, Å for a distance.

Takes: an angle (90 deg). Default: for its kind (a dihedral: 360).

Where it ends, in the same unit.

Takes: a number (1.5). Default: for its kind (a dihedral: 15).

The step, in the same unit (2 to 73 points).

Takes: mmff, xtb. Default: mmff where it can (xtb for a bond stretch or a ring).

Mmff (MMFF94, in the browser) or xtb (GFN2-xTB, on the calculation helper).

Takes: on, off. Default: off.

On keeps everything else fixed; off relaxes the rest at each point.

Takes: on, off. Default: off.

A full turn of a dihedral: on also makes the animated SVG file (the Newman projection turning beside the curve, as Save animation), ready to save.

Takes: a name. Default: scan-chart-1, …

The name a script uses for the chart.

Make objects move together, as Edit > Group does (group is the export group).

bind <object>

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Makes: nothing new; it changes what is there.

Example: bind [water, text-1]

Undo a bind: the objects move on their own again, as Edit > Ungroup does.

unbind <object>

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Makes: nothing new; it changes what is there.

Example: unbind water

Put a lone pair, a radical, or a charge on the canvas on its own, on no atom, as those tools do on an empty spot.

mark <kind> [options]

Argument (required): one of lone-pair, radical, or charge.

Option Takes Default
at: (required) a point (x, y)
angle: an angle (90 deg) 90 (a lone pair), 0 (a radical)
look: dots, lines, lobes the document’s
size: a number (1.5) 1.5
color: a color name or “#rrggbb”
charge: a whole-number charge (-1, 0, +1) +1
charge-look: superscript, circle superscript
name: a name lone-pair-1, radical-1, charge-1, …

Option rules (Check and Run both apply them):

  • charge: does not apply to lone-pair, radical (charge: is for mark charge)
  • charge-look: does not apply to lone-pair, radical (charge-look: is for mark charge)
  • angle: does not apply to charge (angle: is for a lone pair or radical mark)
  • look: does not apply to charge (look: is for a lone pair or radical mark)
  • size: does not apply to charge (size: is for a lone pair or radical mark)
  • color: does not apply to charge (color: is for a lone pair or radical mark)

Makes: the mark [name: lone-pair-1, radical-1, charge-1]; last is the mark.

Example: mark lone-pair at: (3, 2) angle: 90

Takes: a point (x, y).

Where it sits, in bonds from the canvas origin.

Takes: an angle (90 deg). Default: 90 (a lone pair), 0 (a radical).

A lone pair or radical: the line its dots lie along, in degrees.

Takes: dots, lines, lobes. Default: the document’s.

A lone pair or radical: dots, a line, or a lobe.

Takes: a number (1.5). Default: 1.5.

A lone pair or radical: its size.

Takes: a color name or “#rrggbb”.

A lone pair or radical: its own color.

Takes: a whole-number charge (-1, 0, +1). Default: +1.

A charge mark: its charge (+1, -1, 2, -2).

Takes: superscript, circle. Default: superscript.

A charge mark: the sign plain or in a circle.

Takes: a name. Default: lone-pair-1, radical-1, charge-1, …

The name it gets.

Put one orbital on an atom, as the Orbital tool does: s, p, a d orbital, or an sp, sp2, or sp3 hybrid, at an angle; half: on draws one lobe.

orbital <object> [options]

Argument (required): a name (water) or a part (water.O).

Option Takes Default
type: (required) s, p, dxy, dxz, dyz, dx2y2, dz2, sp, sp2, sp3, none
angle: an angle (90 deg) the widest gap between its bonds and orbitals
half: on, off off
lobe-size: a number (1.5) 1

Option rules (Check and Run both apply them):

  • half: on needs type: p, sp, sp2, or sp3

Makes: an orbital on the atom (no name of its own; it moves and deletes with the molecule).

Example: orbital ethene.C1 type: p angle: 270

Takes: s, p, dxy, dxz, dyz, dx2y2, dz2, sp, sp2, sp3, none.

The orbital: s, p, dxy, dxz, dyz, dx2y2, dz2, sp, sp2, or sp3; none takes every orbital on the atom off.

Takes: an angle (90 deg). Default: the widest gap between its bonds and orbitals.

The way its lobe points, in degrees clockwise from pointing right (270 is up).

Takes: on, off. Default: off.

On: one lobe only (a p or hybrid orbital).

Takes: a number (1.5). Default: 1.

Its size, as a multiple of the usual lobe.

Draw an orbital overlap on a bond, as the Orbital tool does: the pi cloud above and below it, the pi* antibonding overlap, or the sigma lens.

overlap <object> [options]

Argument (required): a name (water) or a part (water.O).

Option Takes Default
kind: pi, pi-star, sigma, pi-bridge pi

Makes: an overlap on the bond (no name of its own; it moves and deletes with the molecule).

Example: overlap ethene.bond(C1, C2) kind: pi

Takes: pi, pi-star, sigma, pi-bridge. Default: pi.

Pi: the cloud above and below the bond; pi-star: the antibonding overlap; sigma: the lens on the bond; pi-bridge: the pi bond of the Orbital tool, a bridge joining the p orbitals of the two atoms (made when missing; once joined, a second one joins the out-of-page p orbitals, made on a triple bond when missing, as the tool).

Put a bracket pair around objects, kept fitted, as Bracket Around Selection does; a polymer box, a charge or a dagger in its slots.

bracket <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
kind: square, round, curly square
side: both, left, right both
sub: a word or “quoted text”
super: a word or “quoted text”
polymer: on, off off
name: a name bracket-1, bracket-2, …
padding: a number (1.5)
caps: a number (1.5)
bow-depth: a number (1.5)
tip: a number (1.5)
curl: a number (1.5)
copolymer: a word or “quoted text”
color: a color name or “#rrggbb”
line-width: a length (2 bond, 12 pt) (a number alone: px)
dash: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash
line-opacity: a number (1.5)
shadow: on, off
glow: a color name or “#rrggbb” or none

Option rules (Check and Run both apply them):

  • copolymer: needs polymer: on
  • bow-depth: needs kind: round
  • tip: needs kind: curly
  • curl: needs kind: curly
  • caps: cannot be used with kind: round or curly

Makes: a bracket pair kept fitted around the objects [name: bracket-1]; last is the bracket.

Example: bracket water

Takes: square, round, curly. Default: square.

The bracket’s shape.

Takes: both, left, right. Default: both.

Both brackets, or one.

Takes: a word or “quoted text”.

The text at its lower right: “n” (a polymer’s count).

Takes: a word or “quoted text”.

The text at its upper right: “2-”, ”‡” (a transition state).

Takes: on, off. Default: off.

On: a polymer repeat unit’s bracket, its count n at the lower right.

Takes: a name. Default: bracket-1, bracket-2, …

The name the bracket gets.

Takes: a number (1.5).

The room on all four sides, in bonds (-0.2 to 0.6), as the Padding slider.

Takes: a number (1.5).

A square bracket’s caps, in px (0 to 20; 0 is auto).

Takes: a number (1.5).

A round bracket’s bow, in % of its height (0 to 30).

Takes: a number (1.5).

A curly bracket’s middle tip, in % of its height (0 to 25).

Takes: a number (1.5).

A curly bracket’s end curl, in % of its height (0 to 25).

Takes: a word or “quoted text”.

A polymer bracket: the copolymer label (co, ran, alt, b).

Takes: a color name or “#rrggbb”.

Its line color.

Takes: a length (2 bond, 12 pt) (a number alone: px).

Its line width (px).

Takes: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash.

Its line pattern.

Takes: a number (1.5).

Its line’s opacity, 0.05 to 1.

Takes: on, off.

A soft drop shadow.

Takes: a color name or “#rrggbb” or none.

A glow of this color round it.

Make a second one of a molecule, text, box or arrow, as Edit > Duplicate does: right of the original unless placed.

copy <object> [options]

Argument (required): a name (water).

Option Takes Default
name: a name water-2, water-3, …
at: a point (x, y)
below: a name, set “S”, a list, or all
above: a name, set “S”, a list, or all
left-of: a name, set “S”, a list, or all
right-of: a name, set “S”, a list, or all
beside: a name, set “S”, a list, or all
gap: a length (2 bond, 12 pt) 1.5 bond
align: left, center, right, top, middle, bottom center above / below, middle left-of / right-of

Option rules (Check and Run both apply them):

  • at most one of at:, below:, above:, left-of:, right-of:, beside:
  • align: values depend on the placement: below: left, center, right; above: left, center, right; left-of: top, middle, bottom; right-of: top, middle, bottom
  • align: needs below:, above:, left-of:, or right-of:
  • gap: needs at:, below:, above:, left-of:, right-of:, or beside:

Makes: a copy, named water-2 (or the next free number); last is the copy.

Example: copy water

Takes: a name. Default: water-2, water-3, …

The copy’s name.

Bring objects to the front or send them to the back, as right-click Bring to Front, Send to Back, Bring Forward and Send Backward do.

layer <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
to: front, back, forward, backward front

Makes: nothing new; it changes what is there.

Example: layer box-1 to: back

Takes: front, back, forward, backward. Default: front.

Front or back of everything, or one step forward or backward; a list goes in its order.

Box objects in a rectangle (as the Shape tool draws one, for a boxed answer or a group to point out).

box <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water"). At least 1 item.

Option Takes Default
padding: a length (2 bond, 12 pt) (a number alone: bond) 0.4 bond
color: a color name or “#rrggbb” black
dash: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash solid
name: a name box-1, box-2, …

Makes: a rectangle around the objects, named box-1, box-2, …; it does not move with them; last is the box.

Example: box water color: red

Takes: a length (2 bond, 12 pt) (a number alone: bond). Default: 0.4 bond.

The space between the objects and the box, on every side.

Takes: a color name or “#rrggbb”. Default: black.

The line color.

Takes: solid, dashed, dotted, dash-dot, dash-dot-dot, long-dash. Default: solid.

The line pattern.

Takes: a name. Default: box-1, box-2, …

The name the box gets.

Make a structure animation: one pane per object, in order, framed where it is; an inner list is one pane holding several objects ([[a, b], c]); one object makes a one-pane animation that next-step or add can grow.

animate <object> [options]

Argument (required): a name (water) or a list ([water, ammonia]).

Option Takes Default
name: a name animation-1
speed: a number (1.5)

Makes: nothing new; it changes what is there.

Example: animate [reactants, products] name: sn2

Takes: a name. Default: animation-1.

The animation’s name, for delete.

Takes: a number (1.5).

Its pace: 1 is normal, 2 twice as fast, 0.5 half (0.05 to 32).

Add an atom (bonded to the one named) or a bond to a molecule; with into:, add an object to an animation as a new pane.

add <part or object> [options]

Argument (required): a name (water) or a part (water.O).

Option Takes Default
atom: an element symbol (O, Cl)
order: a whole number 1
into: a name
after: a name the last pane
ring: cyclopropane, cyclobutane, cyclopentane, cyclohexane, cycloheptane, cyclooctane, benzene, pyridine, pyrrole, furan, thiophene
side: left, right away from a ring the bond is in

Option rules (Check and Run both apply them):

  • after: needs into:
  • side: needs ring:

Makes: nothing new; it changes what is there.

Example: add ethanol.O atom: H

Takes: an element symbol (O, Cl).

The new atom’s element, bonded to the atom named (add methane.C atom: Cl); it goes in the widest gap around that atom.

Takes: a whole number. Default: 1.

The new bond: 1, 2, or 3.

Takes: a name.

A set (add water into: set “Water”: set membership, as draw … into: does), or an animation: the object (a whole one, add product into: sn2; a list add [x, y] into: sn2 is one pane of several) becomes a new pane, framed where it is; the panes are laid out again if it would overlap one; a set is not accepted.

Takes: a name. Default: the last pane.

With into:, an object in a pane of the animation: the new pane goes after that one.

Takes: cyclopropane, cyclobutane, cyclopentane, cyclohexane, cycloheptane, cyclooctane, benzene, pyridine, pyrrole, furan, thiophene.

A bond (add naphthalene.bond(C1, C2) ring: benzene): a ring fused onto it, as the Ring tool dropped on the bond.

Takes: left, right. Default: away from a ring the bond is in.

With ring:, the side, seen from the first atom named.

Take an object out of a set, or its pane out of an animation; the object stays.

remove <object> [options]

Argument (required): a name (water).

Option Takes Default
from: (required) a name

Makes: nothing new; it changes what is there.

Example: remove sn2-ts from: sn2

Takes: a name.

The animation (the pane holding the object goes), or a set: remove ammonia-2 from: set “Ammonia” takes it out of the set (round 2); the object stays on the canvas.

Add the next pane of an animation from a pane’s curved arrows (the toolbar’s Next Step): bonds formed and broken, lone pairs and charges moved, the arrows used up.

next-step <animation> [options]

Argument (required): an animation’s name (sn2).

Option Takes Default
from: a name the last pane
name: a name -p (several molecules: -1, -2, …)
layout: keep, redraw keep

Makes: a new pane after the one read, and a name for each molecule in it (sn2-p2, or sn2-p2-1, sn2-p2-2).

Example: next-step sn2

Takes: a name. Default: the last pane.

An object in a pane of the animation: its arrows are read, and the new pane goes right after it.

Takes: a name. Default: -p (several molecules: -1, -2, …).

The new molecule’s name; several molecules are name-1, name-2, … in reading order.

Takes: keep, redraw. Default: keep.

Keep: the atoms stay where they were, as the toolbar does; redraw: each new molecule is drawn afresh, side by side (the atoms move as the step plays).

Work out the mechanism from a pane of reactants and the pane of products after it. GFN2-xTB computes the reaction path, and Molkit draws the curved arrows it finds on the reactants; the log says concerted or stepwise, the intermediates, the barrier, the method and the medium. When the reactant pane already has curved arrows, it checks them instead: do they make the products drawn in the next pane, and does a path computed from them make and break the same bonds, in one step or several.

mechanism <animation> [options]

Argument (required): an animation’s name (sn2).

Option Takes Default
path: on, off on
show: path nothing more
reference: separated, complex, first separated
ts: on, highest, off on
solvent: none, water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, phenol water (machine); none in the browser
waters: a whole number 0 (none)
settle: on, off off
conformers: a whole number 1
free-energy: on, off off
temperature: a number (1.5) 298.15
isotope: a name, set “S”, a list, or all
connect: on, off on
from: a name the first pane
where: browser, machine browser
precision: loose, normal, tight normal
images: a whole number 12 (normal)
path-force: a number (1.5) 0.05 (normal)
opt-force: a number (1.5) 0.05 (normal)
max-steps: a whole number 400 (normal)
intermediate-depth: a number (1.5) 2

Option rules (Check and Run both apply them):

  • solvent: water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, or phenol needs where: machine

Makes: the curved arrows on the reactant pane (nothing when it checks drawn arrows: the answer is in the log).

Example: mechanism sn2

Takes: on, off. Default: on.

Checking drawn arrows: off compares them with the drawn products only, with no calculation (instant).

Takes: path. Default: nothing more.

Path: open the computed path in a window of its own, its energy curve and a slider that moves the molecules along it in the 3D view.

Takes: separated, complex, first. Default: separated.

What the barrier is measured from: separated (the molecules apart: the overall barrier, which can be negative in the gas phase), complex (the reactant complex, the valley where they meet: the central barrier), first (the first point of the computed path); the other barrier is given beside it, and the profile’s zero follows.

Takes: on, highest, off. Default: on.

The transition state checked: the frequencies at the top of the path (exactly one imaginary one, moving along the path, makes it a transition state), refined onto the saddle point when it is not there yet; a stepwise path has a top per step, each checked (highest: only the highest, quicker); off leaves the tops estimates (quicker still).

Takes: none, water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, phenol. Default: water (machine); none in the browser.

Where: machine only: the solvent of the ALPB continuum model (xTB), or none for the gas phase; the browser route is gas phase (OCC has no solvent yet).

Takes: a whole number. Default: 0 (none).

Micro-solvation: this many explicit water molecules (1 to 4; 2 is a good start), hydrogen-bonded where the charge changes most along the reaction and kept along the whole path; two placements are tried and the lowest kept. The barrier is then measured from the solvated reactants, and given as an energy (no free energies). Both routes; on the machine the waters sit inside the solvent: (more atoms: slower).

Takes: on, off. Default: off.

Waters: only: runs the whole calculation again with one water more and gives both barriers, so you can see whether the number has settled (at least twice the time; with conformers: more, the second run tries them all again).

Takes: a whole number. Default: 1.

How many starting geometries to try (1 to 3): other approach angles, for two molecules joining by two bonds the other face (endo / exo), and for an elimination the syn-periplanar start beside the anti one (1 starts anti); each runs its own path and the lowest is kept; the log gives every barrier tried. A light search, not a conformer search (slower by the count).

Takes: on, off. Default: off.

On: free energies of activation and reaction beside the electronic ones (dG++, dG at temperature:, 1 M standard state), from the separated molecules and the checked transition state, a frequency calculation each (slower); quasi-RRHO, symmetry numbers taken as 1.

Takes: a number (1.5). Default: 298.15.

The temperature in kelvin (100 to 1000) of the free energies and of isotope:; given without isotope:, it turns free-energy: on.

Takes: a name, set “S”, a list, or all.

A kinetic isotope effect k(light)/k(heavy) for these atoms of the reactants (up to 3: bromoethane.H1), each swapped for its heavier isotope (H to D, C to 13C, N to 15N, O to 18O, Cl to 37Cl, Br to 81Br), from the checked transition state (semi-classical, with Wigner tunnelling beside it; qualitative: primary or secondary, normal or inverse); an atom drawn as an isotope (a D) counts without it.

Takes: on, off. Default: on.

Once the transition state is checked, a descent down each side of it (along its imaginary mode) says whether it connects the reactants and the products of the path, or what it reaches instead; off skips it (quicker).

Takes: a name. Default: the first pane.

An object in the reactant pane; the products are the pane after it.

Takes: browser, machine. Default: browser.

Browser: computed in this page (gas phase, nothing to install); machine: with xTB in water, the one to trust for ions; needs the calculation helper.

Takes: loose, normal, tight. Default: normal.

Every threshold at once: loose is quicker (10 images, forces 0.1 eV/Å, 250 steps), tight more careful (16 images, 0.02 eV/Å, 1000 steps).

Takes: a whole number. Default: 12 (normal).

Points along the reaction path, the two ends included (8 to 24).

Takes: a number (1.5). Default: 0.05 (normal).

The path is converged when no atom feels more than this, in eV/Å (0.05 eV/Å is 9.7e-4 Eh/bohr), the climbing image included.

Takes: a number (1.5). Default: 0.05 (normal).

The reactants and the product are relaxed until no atom feels more than this, in eV/Å.

Takes: a whole number. Default: 400 (normal).

The most steps the path may take; a path that stops here unconverged says so.

Takes: a number (1.5). Default: 2.

How deep, in kcal/mol, a dip in the energy must be to count as an intermediate (GFN2-xTB is good to about 2).

Add a step to an animation’s guided tour (an image of its computed path, a caption, atoms to ring; played with the exported figure).

tour <animation> [options]

Argument (required): an animation’s name (sn2).

Option Takes Default
frame: start, ts, end
image: a whole number
band: a number (1.5)
caption: a word or “quoted text”
kind: show, predict show
ask: a word or “quoted text”
highlight: a name, set “S”, a list, or all
panels: structure, plot, table
at: a whole number the end

Makes: nothing on the canvas: the step is kept with the animation and exported with its computed path.

Example: tour sn2 frame: ts caption: "the transition state: Cl, C and Br in a line" highlight: [bromomethane.C]

Takes: start, ts, end.

The image the step shows: start (the reactants), ts (the top of the path), end (the products); or image:.

Takes: a whole number.

The image the step shows, by number (1 is the reactants).

Takes: a number (1.5).

A molecule’s IR tour (tour ethanol band: 3569): the computed band the step shows, by its wavenumber in cm-1.

Takes: a word or “quoted text”.

The words under the step (sub, sup, i, b tags; {barrier} {energy} {units} {reference} {image} fill in, in the reader’s units).

Takes: show, predict. Default: show.

Predict: the step asks its question (ask:) and hides the numbers until the reader chooses Show answer.

Takes: a word or “quoted text”.

A predict step: its question (“How high is the barrier?”).

Takes: a name, set “S”, a list, or all.

Atoms of the first pane (where the path starts) to ring, or a whole molecule by name: [bromomethane.C, chloride].

Takes: structure, plot, table.

The views the step opens (the others close): [structure, plot].

Takes: a whole number. Default: the end.

Insert the step at this place in the tour (1 is first).

Powder X-ray pattern of a crystal, simulated: each family of planes (h k l) at the angle Bragg’s law gives for its spacing d, as strong as its structure factor (the X-ray scattering factors of its atoms, Waasmaier and Kirfel) and the Lorentz-polarization factor make it, the planes of one spacing added up. The log gives the strongest peaks; the pattern opens in its own window, where a click on a peak draws its plane in the cell. Changes nothing on the canvas.

xrd <object> [options]

Argument (required): a name (water).

Option Takes Default
source: cu, mo, co cu
show: pattern, nothing pattern

Makes: nothing on the canvas: the pattern opens in its own window (Insert into drawing puts it on the canvas).

Example: xrd nacl-1

Takes: cu, mo, co. Default: cu.

The X-rays: cu (copper K alpha 1, 1.5406 A, the usual laboratory source), mo (0.7093 A) or co (1.7890 A).

Takes: pattern, nothing. Default: pattern.

Pattern: open it in its own window; nothing: the log only.

Compute a molecule’s ESP map (calc helper). As the 3D view’s ESP Calculate does: relaxed with GFN2-xTB (in water for an ion), then the potential from B3LYP/def2-SVP (OCC) on a grid round it. The map is kept for the molecule: its 3D view shows it, a save keeps it, an SVG export embeds it (export esp: inside or separate). With B3LYP or HF the same calculation’s dipole moment is kept with the map. Changes nothing on the canvas.

esp <object> [options]

Argument (required): a name (water).

Option Takes Default
method: b3lyp-def2-svp, hf-3-21g, gfn2 b3lyp-def2-svp
relax: on, off on
charge: a whole-number charge (-1, 0, +1)
unpaired: a whole number
geometry: built, relaxed built
optional: on, off off

Makes: nothing on the canvas: the map is kept for the molecule (its 3D view shows it; Save and SVG export keep it).

Example: esp water

Takes: b3lyp-def2-svp, hf-3-21g, gfn2. Default: b3lyp-def2-svp.

The level of theory of the potential: b3lyp-def2-svp (OCC; the best of the three, its dipole within 0.3 D of the measured value for 58 of 61 molecules), hf-3-21g (OCC, quicker, rougher), gfn2 (xTB, quickest, from atomic charges and multipoles).

Takes: on, off. Default: on.

On: relax the geometry with GFN2-xTB first (in water for an ion); off: the built 3D structure as it is.

Takes: a whole-number charge (-1, 0, +1).

The molecule’s charge, when not the drawn one (-1, +1, 2).

Takes: a whole number.

The number of unpaired electrons, when not what the drawing says (O2 is two; an odd count of electrons one).

Takes: built, relaxed. Default: built.

Relaxed: the map’s relaxed geometry becomes the molecule’s own 3D structure (as the 3D view’s Use this geometry), so the shown model, the exported 3D and the map share one shape; built: the molecule keeps its built (MMFF94) structure.

Takes: on, off. Default: off.

On: a molecule the helper cannot do (no helper running, a salt, an element it has no basis for) is skipped with a note; off: it is an error.

Compute the IR spectrum of a drawn molecule, or its NMR signals (kind: 1h, 13c, dept-90, dept-135). IR, with GFN2-xTB: it is built in 3D and relaxed, its vibrations and their intensities computed, and each band named from what moves (O-H stretch, H-O-H bend); the log gives the strongest bands, the method, the medium and the limits, and the spectrum opens beside the 3D view, where a click on a band plays its vibration. NMR, from the structure alone (exact, no calculation, no shifts): the sets of equivalent H or C, the integration, the first-order splitting by the n+1 rule with the neighbors that cause it, the DEPT class and signs, exchangeable H; kept on the molecule and listed in a window of their own. Changes nothing on the canvas.

spectrum <object> [options]

Argument (required): a name (water).

Option Takes Default
kind: ir, 1h, 13c, dept-90, dept-135 ir
where: browser, machine browser
precision: loose, normal, tight normal
solvent: none, water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, phenol, cdcl3, dmso-d6, d2o, cd3od, acetone-d6, c6d6, cd3cn, cd2cl2, thf-d8, toluene-d8, pyridine-d5 water (machine); none in the browser; cdcl3 for NMR
width: a number (1.5) 20
show: spectrum, table, signals, nothing spectrum (ir); table (NMR)
diastereotopic: separate, merged separate
exchange: none, d2o none
field: a number (1.5) 400
data: a word or “quoted text”
assign: a list of pairs [[HA, acetic-acid]]

Option rules (Check and Run both apply them):

  • solvent: water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, or phenol needs where: machine
  • where: needs kind: ir
  • precision: needs kind: ir
  • width: needs kind: ir
  • diastereotopic: needs kind: 1h, 13c, dept-90, or dept-135
  • exchange: needs kind: 1h, 13c, dept-90, or dept-135
  • field: needs kind: 1h, 13c, dept-90, or dept-135
  • data: needs kind: 1h, 13c, dept-90, or dept-135
  • assign: needs kind: 1h, 13c, dept-90, or dept-135
  • data: is read as NMR data in the journal form (1H NMR (400 MHz, CDCl3) δ 4.12 (q, J = 7.1 Hz, 2H), …), or none
  • solvent: values depend on kind: (default ir): ir: none, water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, phenol; 1h: cdcl3, dmso-d6, d2o, cd3od, acetone-d6, c6d6, cd3cn, cd2cl2, thf-d8, toluene-d8, pyridine-d5; 13c: cdcl3, dmso-d6, d2o, cd3od, acetone-d6, c6d6, cd3cn, cd2cl2, thf-d8, toluene-d8, pyridine-d5; dept-90: cdcl3, dmso-d6, d2o, cd3od, acetone-d6, c6d6, cd3cn, cd2cl2, thf-d8, toluene-d8, pyridine-d5; dept-135: cdcl3, dmso-d6, d2o, cd3od, acetone-d6, c6d6, cd3cn, cd2cl2, thf-d8, toluene-d8, pyridine-d5
  • show: values depend on kind: (default ir): ir: spectrum, nothing; 1h: table, signals, nothing; 13c: table, signals, nothing; dept-90: table, signals, nothing; dept-135: table, signals, nothing

Makes: nothing on the canvas: the spectrum opens in its own window (Insert into drawing puts it on the canvas).

Example: spectrum ethanol

Takes: ir, 1h, 13c, dept-90, dept-135. Default: ir.

Ir: the computed IR spectrum; 1h, 13c, dept-90, dept-135: the NMR signals from the structure (how many, integration, first-order splitting, DEPT), exact, no shifts and no calculation.

Takes: browser, machine. Default: browser.

Browser: computed in this page (gas phase, nothing to install; the intensities approximate, from atomic charges); machine: with xTB, with its own intensities; needs the calculation helper.

Takes: loose, normal, tight. Default: normal.

How tightly the molecule is relaxed before its vibrations are computed: tight for the low bands (torsions), loose is quicker.

Takes: none, water, methanol, acetonitrile, dmso, dmf, acetone, thf, ch2cl2, chcl3, toluene, benzene, hexane, ether, ethylacetate, dioxane, octanol, woctanol, nitromethane, aniline, benzaldehyde, cs2, furane, hexadecane, phenol, cdcl3, dmso-d6, d2o, cd3od, acetone-d6, c6d6, cd3cn, cd2cl2, thf-d8, toluene-d8, pyridine-d5. Default: water (machine); none in the browser; cdcl3 for NMR.

IR, where: machine only: the solvent of the ALPB continuum model (xTB), or none for the gas phase (the browser route is gas phase); NMR: the deuterated solvent of the written data.

Takes: a number (1.5). Default: 20.

The width of each band in the drawn spectrum, in cm-1 (full width at half height); the computed numbers do not change.

Takes: spectrum, table, signals, nothing. Default: spectrum (ir); table (NMR).

Spectrum: open the IR spectrum in its own window; table: the NMR signals in their own window; signals: that and letters on the drawing (show nmr-signals); nothing: the log only.

Takes: separate, merged. Default: separate.

NMR: merged counts two H on one sp3 carbon, and two methyls on one carbon, as one (textbook simple).

Takes: none, d2o. Default: none.

NMR: d2o exchanges the OH and NH hydrogens (their signal goes).

Takes: a number (1.5). Default: 400.

NMR: the spectrometer frequency in MHz, for the written data (60, 90, 300, 400, 500, 600, 800).

Takes: a word or “quoted text”.

NMR: measured data in the journal form, kept with the molecule and compared with its signals: “1H NMR (400 MHz, CDCl3) δ 4.12 (q, J = 7.1 Hz, 2H), 2.05 (s, 3H)”; none removes it.

Takes: a list of pairs [[HA, acetic-acid]].

NMR: which peak is which signal, by shift and letter: [[4.12, b], [1.26, c]] (a peak and signal that match uniquely are paired by themselves).

Copy an animation beside it: its panes, with copies of their molecules, its matches and timing.

duplicate <animation> [options]

Argument (required): an animation’s name (sn2).

Option Takes Default
name: a name the next free name (sn2-2)

Makes: a copy of the animation, with copies of its molecules (water-2), named by its name: option, else the next free name (sn2-2).

Example: duplicate sn2 name: sn2-alt

Takes: a name. Default: the next free name (sn2-2).

The copy’s name.

Line up objects in a row or a column, in list order; a set moves as one block; an animation’s name lays out its panes.

arrange <list> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
as: row, column, grid, views row
gap: a length (2 bond, 12 pt) 1.5 bond
align: top, middle, bottom, left, center, right middle for a row, center for a column, top for a grid
columns: a whole number 3
rows: a whole number

Option rules (Check and Run both apply them):

  • columns: needs as: grid or views
  • rows: needs as: grid
  • at most one of columns:, rows:
  • align: values depend on as: (default row): row: top, middle, bottom; column: left, center, right; grid: any; views: any

Makes: nothing new; it changes what is there.

Example: arrange [water, ammonia, set "Ozone"] as: row

Takes: row, column, grid, views. Default: row.

Row: left to right; column: top to bottom; grid: rows of columns: items each, in list order; views: one set, its views in a row (rows of columns: when given), its resonance forms below with the copies of each form under it.

Takes: a length (2 bond, 12 pt). Default: 1.5 bond.

The space between neighbors.

Takes: top, middle, bottom, left, center, right. Default: middle for a row, center for a column, top for a grid.

Row: top, middle, or bottom; column: left, center, or right; grid: any (the other axis centered, or top).

Takes: a whole number. Default: 3.

A grid: how many items per row; views: how many views or forms per row.

Takes: a whole number.

A grid filled down its columns instead: how many items per column (the last column may end short).

Export objects or sets as SVG or PNG files (an SVG is made the way Batch Export makes it), MOL or SMILES files, or an animation as an animated SVG; the files are ready to save when the run succeeds.

export <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), a set (set "Water"), or page. page must be on its own, not in a list.

Option Takes Default
as: svg, png, tsv, csv, xyz, orbitals, mol, sdf, smiles, pdf svg
frame: all, ts all
coordinates: a word or “quoted text” the bonds formed and broken, as distances
file: a word or “quoted text” the object’s name (a set: its name made web-safe, as Batch Export does)
tabs: on, off off
scale: a whole number 2
background: white, transparent white
loop: on, off off

Option rules (Check and Run both apply them):

  • file: only with one object as the argument (not a list)
  • file: takes a file name only (no folders), ending in the as: type (default svg)
  • scale: needs as: png
  • background: needs as: png
  • frame: needs as: xyz
  • as: pdf only with undefined
  • page: as: pdf only
  • coordinates: needs as: tsv or csv

Makes: nothing new; it changes what is there.

Example: export set "Water"

Takes: svg, png, tsv, csv, xyz, orbitals, mol, sdf, smiles, pdf. Default: svg.

The file type: pdf (export page as: pdf: the whole document on the Page Setup paper, as File > Export > PDF; round 2); mol (the structure as a V2000 MOL file, the block an SVG export embeds); sdf (the same block with its name as a data field, one record); smiles (a .smi file: the SMILES Copy as SMILES gives, then the name); orbitals (a 3D view, its orbitals as a labeled SVG); svg or png (a picture); tsv or csv (the computed data: an animation’s mechanism path table, an object’s IR spectrum table; pastes into Excel, Sheets, Origin); xyz (an animation’s computed path, every frame, for Avogadro, VMD, Jmol, or one frame to run again in Gaussian or ORCA).

Takes: all, ts. Default: all.

As: xyz of an animation: all (every frame of the path, one file) or ts (the transition state alone, its imaginary frequency in the comment line).

Takes: a word or “quoted text”. Default: the bonds formed and broken, as distances.

As: tsv or csv of an animation: the columns beside the energies, in the table’s own names: r(Cl1-C2) a distance, angle(Cl1-C2-Br3), dihedral(H4-C2-O1-H5), n(C2-Br3) a bond order; atoms as describe names them.

Takes: a word or “quoted text”. Default: the object’s name (a set: its name made web-safe, as Batch Export does).

The file name (one object only, or the one file of tabs: on).

Takes: on, off. Default: off.

A list of animations: on puts them in one SVG with a tab per animation (animations.svg).

Takes: a whole number. Default: 2.

PNG only: pixels per canvas unit (2 is sharp on most screens; 4 for print).

Takes: white, transparent. Default: white.

PNG only: a white background or a transparent one.

Takes: on, off. Default: off.

An animation: on repeats it; off plays it once and rests on the last pane.

Name several objects or sets as one export. set “G” may name another group: its members join.

group <object> [options]

Argument (required): a name (water), a list ([water, ammonia]), or a set (set "Water").

Option Takes Default
name: (required) a word or “quoted text”
kind: group, resonance group

Makes: a named group.

Example: group [set "Ozone", set "NO2"] name: "bent"

Takes: a word or “quoted text”.

The name of the group (its file name when exported); no set or group may have it.

Takes: group, resonance. Default: group.

Resonance: the forms and the resonance arrows between them marked as a resonance set, as right-click Mark as Resonance Set (round 2).

Select objects or parts and leave them selected after the run. You can go on with the mouse. Parts: water.O, water.bond(O, H1), water.O.lone-pair1.

select <object>

Argument (required): a name (water), a part (water.O), a list ([water, ammonia]), or a set (set "Water").

Makes: nothing; it only reports (no undo step).

Example: select water.O

List the named objects: names, titles, formulas, views, sets, and positions; animations too. An animation’s name: its panes and changes. With as: script, write the canvas as a script.

describe [<name>] [options]

Argument (optional): a name (water) or a part (water.O).

Option Takes Default
as: script, properties

Option rules (Check and Run both apply them):

  • as: script only with no argument (the whole canvas)
  • as: properties only with one object as the argument (not a list)

Makes: nothing; it only reports (no undo step).

Example: describe water

Takes: script, properties.

Script: the lines that rebuild what is on the canvas (draw, write, and at: for each position); anything that cannot be written as a script yet is listed in comments. properties: the numbers of one molecule, as the Properties fold of the object panel lists them (formula, masses, counts, degree of unsaturation; valence electrons, electrons shown, formal charges, octets).

Show how Molkit reads a command line: what each name means, every option with its value or default, and what the line would make. Changes nothing.

explain <command line>

Argument (required): a whole command line, such as draw water view: lewis.

Makes: nothing; it only reports (no undo step).

Example: explain draw water view: lewis

Show the commands, or one command’s options with their values and defaults.

help [<command>]

Argument (optional): a command, such as draw; leave it out for the list of commands.

Makes: nothing; it only reports (no undo step).

Example: help draw

Options that mean the same on every command that takes them. Each command’s table links here.

Takes: a name, set “S”, a list, or all.

Over an object, a set, a list, all, or one atom.

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, place, projection, chart, scan, copy.

Takes: left, center, right, top, middle, bottom. Default: center above / below, middle left-of / right-of.

With a placement: which edges line up.

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, projection, chart, scan, copy.

Which values apply depends on the placement: left, center, and right go with above: and below:; top, middle, and bottom go with left-of: and right-of:.

Example: draw water and then draw ammonia right-of: water align: middle

Takes: a point (x, y).

Its top-left corner, in bond lengths from the canvas origin: at: (4, 10).

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, place, projection, chart, scan, copy.

Takes: a name, set “S”, a list, or all.

Under an object, a set, a list, all (the box around them), or one atom (propane.C2).

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, place, projection, chart, scan, copy.

Takes: a name, set “S”, a list, or all.

Next to an object, on the first side with room: right, below, left, then above.

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, projection, chart, scan, copy.

Takes: a length (2 bond, 12 pt). Default: 1.5 bond.

With a placement: the space between the boxes around the two objects.

Used by: draw, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, projection, chart, scan, copy.

Takes: set “Name”.

Adds what the command makes to that set, and creates the set if needed.

Used by: draw, derive, resonance, orbital-picture.

Takes: set “Name”.

Adds the figure to that set (no set of that name: a named group, exported as one file).

Used by: hybrid, scene, hybrid-orbitals.

Takes: a name, set “S”, a list, or all.

Left of an object, a set, a list, all, or one atom.

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, place, projection, chart, scan, copy.

Takes: a name, set “S”, a list, or all.

Right of an object, a set, a list, all, or one atom.

Used by: draw, reaction, write, config, hybrid, scene, hybrid-orbitals, lattice, crystal, mo, place, projection, chart, scan, copy.

  • word: takes one word.
  • text: takes one word or quoted text.
  • name: takes one name.
  • set: takes a set: set “Water”.
  • words: takes a word or a list of words.
  • pairs: takes pairs: [[HA, acetic-acid], [A-, acetate]] (a formula a word cannot hold goes in \ce{}).
  • color: takes a color: a name (red, blue, …) or a quoted hex value (“#cc0000”).
  • length: takes a length: a number and a unit (2 bond, 12 pt, 5 mm; a number alone is in the unit of the option: bond, or pt for text sizes, px for line widths).
  • angle: takes an angle in degrees: 90 deg, -45 deg (a number alone is in deg).
  • element: takes an element symbol: O, Cl, Br.
  • charge: takes a whole-number charge: -1, 0, +1 (or + and -).
  • number: takes a number with no unit: 1.5.
  • time: takes a time: 2 s, 500 ms (a number alone is in s), or auto.
  • pose: takes three angles in degrees: pose: (20, -35, 0).
  • points: takes a list of points in bonds: [(0, 0), (0.87, -0.5)].

Length units: bond, pt, mm, cm, in, px.

Reserved words (these cannot be names): all, last, set, for, foreach, each, in, let, on, off, molkit-script, on-error, selection.

What each code means and what to do. Next step says what kind of action a problem needs: fix the script; try again later (nothing in the script is wrong); act in the app first, such as leaving animation mode; or report it (a fault in Molkit, not in the script).

Code Meaning Next step Fix
E-SYNTAX The line cannot be read as Molkit Script, or a value has the wrong form. Fix the script Rewrite the line in the form the command reference shows.
E-PCT % was used to start a comment. Fix the script Start comments with #.
E-VERB There is no command with that name. Fix the script Use a command from the command reference (the error lists the nearest ones).
E-OPT An option the command does not have, a value the option does not take, or options that cannot be used together. Fix the script Use the options and values that the command reference lists for that command.
E-NAME A name that does not exist, or a name that a new object cannot have. Fix the script Use a name that describe lists, or give the new object another name with name:.
E-TAKEN The name is already used in the document. Fix the script Give the new object another name (name: water-2), or, on draw, add if-exists: reuse.
E-AMBIG The script could mean more than one thing (two sets with the same name, or a formula that several species share). Fix the script Say which one you mean, as the error suggests.
E-OBJECT The command does not work on that kind of object, or the object is no longer one molecule. Fix the script Name a molecule (or the kind of object the command takes).
E-PART A part (water.O, water.H1, water.bond(O, H1), water.O.lone-pair1) that the molecule does not have, or one written in a form Molkit cannot read. Fix the script Use a part that the error lists (describe <molecule> lists them all).
E-BOND A bond named by its elements (bond(C, H)) matches more than one bond. Fix the script Number the atoms: bond(C1, H2) (describe <molecule> lists its bonds).
E-APPLY The request does not apply to that molecule (a view it cannot have, or a view it already is). Fix the script Leave that view out, or use views: all to make only the views that apply.
E-DERIVE Molkit could not make the requested view or picture of that molecule. Fix the script Leave it out, or draw the molecule another way.
E-DRAW Molkit could not lay out that species. Fix the script Try the other view, or give the species with smiles:.
E-SMILES Molkit cannot read the SMILES. Fix the script Correct the SMILES (close every ring; remove control characters).
E-WRITE MathJax could not typeset or measure the text or equation. Try again Try again once MathJax has loaded, and check that the \ce{...} or $...$ is well formed.
E-EXPORT Molkit could not export that object. Report it Report it. Meanwhile, export the object from the app.
E-NETWORK A lookup (PubChem, or the Crystallography Open Database) could not be reached. Try again Give the species with smiles: (a crystal: open its CIF with File > Open), or try again when you are online.
E-PROTO The script uses a reserved command, option or value that Molkit Script does not run. Fix the script Leave it out: the command reference lists only what works.
E-LIMIT The run went past a limit (lines carried out, recipe depth, or nesting). Fix the script Look for a loop or recipe that never ends, then shorten or restructure it.
E-MODE Scripts cannot run in the app’s current state (animation mode, inside an entered group, or on another tab while stepping). Act in the app Leave animation mode or the group, then run again.
E-BUSY Another script is running. Try again Wait for it to finish, or stop it, then run again.
E-STOP You stopped the run, and it was undone. Act in the app Run the script again when you are ready.
E-INTERNAL Molkit failed while running a line (a fault in Molkit, not in the script). Report it Report it with the script. The run was undone.
E-OCTET The species has two depictions (obeying the octet, or expanded). Fix the script Add octet: obey or octet: expand.

The names draw <species> knows. For anything else, Molkit looks the name up in PubChem, or you give a SMILES: draw <name> smiles: "...".

Name Title SMILES
water water O
hydronium hydronium [OH3+]
hydroxide hydroxide [OH-]
hydrogen-sulfide hydrogen sulfide S
ammonia ammonia N
ammonium ammonium [NH4+]
methane methane C
ethane ethane CC
ethylene ethylene C=C
acetylene acetylene C#C
benzene benzene c1ccccc1
methanol methanol CO
ethanol ethanol CCO
formaldehyde formaldehyde C=O
acetic-acid acetic acid CC(=O)O
ethyl-acetate ethyl acetate CCOC(C)=O
formic-acid formic acid OC=O
carbon-dioxide carbon dioxide O=C=O
chloromethane chloromethane CCl
bromomethane bromomethane CBr
hydrogen hydrogen [H][H]
oxygen oxygen O=O
nitrogen nitrogen N#N
chlorine chlorine ClCl
hydrogen-chloride hydrogen chloride Cl
hydrogen-fluoride hydrogen fluoride F
hydrogen-bromide hydrogen bromide Br
nitrate nitrate [O-][N+](=O)[O-]
nitrite nitrite [O-]N=O
carbonate carbonate [O-]C(=O)[O-]
acetate acetate CC(=O)[O-]
formate formate [O-]C=O
ozone ozone [O-][O+]=O
sulfur-hexafluoride sulfur hexafluoride FS(F)(F)(F)(F)F
phosphorus-pentafluoride phosphorus pentafluoride FP(F)(F)(F)F
chloride chloride [Cl-]
bromide bromide [Br-]
fluoride fluoride [F-]
iodide iodide [I-]
lithium-ion lithium ion [Li+]
sodium-ion sodium ion [Na+]
potassium-ion potassium ion [K+]
magnesium-ion magnesium ion [Mg+2]
calcium-ion calcium ion [Ca+2]
tert-butyl-bromide tert-butyl bromide CC(C)(C)Br
tert-butyl-cation tert-butyl cation C[C+](C)C
sulfate sulfate [O-]S(=O)(=O)[O-]
sulfite sulfite [O-]S(=O)[O-]
phosphate phosphate [O-]P(=O)([O-])[O-]
perchlorate perchlorate [O-]Cl(=O)(=O)=O
sulfur-dioxide sulfur dioxide O=S=O
sulfur-trioxide sulfur trioxide O=S(=O)=O
nitrogen-dioxide nitrogen dioxide [O-][N+]=O
nitric-oxide nitric oxide [N]=O
carbon-monoxide carbon monoxide [C-]#[O+]
xenon-difluoride xenon difluoride F[Xe]F
xenon-tetrafluoride xenon tetrafluoride F[Xe](F)(F)F
sulfur-tetrafluoride sulfur tetrafluoride FS(F)(F)F
chlorine-trifluoride chlorine trifluoride FCl(F)F
bromine-pentafluoride bromine pentafluoride FBr(F)(F)(F)F
iodine-pentafluoride iodine pentafluoride FI(F)(F)(F)F
boron-trifluoride boron trifluoride FB(F)F
boron-trichloride boron trichloride ClB(Cl)Cl
borane borane B
beryllium-chloride beryllium chloride Cl[Be]Cl
aluminum-chloride aluminum chloride Cl[Al](Cl)Cl
hydrogen-cyanide hydrogen cyanide C#N
phosphorus-trichloride phosphorus trichloride ClP(Cl)Cl
phosphorus-pentachloride phosphorus pentachloride ClP(Cl)(Cl)(Cl)Cl
nitrogen-trifluoride nitrogen trifluoride FN(F)F
carbon-tetrachloride carbon tetrachloride ClC(Cl)(Cl)Cl
propane propane CCC
butane butane CCCC
cyanide cyanide [C-]#N
caffeine Caffeine CN1C=NC2=C1C(=O)N(C(=O)N2C)C
aspirin Aspirin CC(=O)OC1=CC=CC=C1C(=O)O
sodium-hydroxide sodium hydroxide [Na+].[OH-]
potassium-hydroxide potassium hydroxide [K+].[OH-]
lithium-hydroxide lithium hydroxide [Li+].[OH-]
sodium-chloride sodium chloride [Na+].[Cl-]
potassium-chloride potassium chloride [K+].[Cl-]
lithium-chloride lithium chloride [Li+].[Cl-]
sodium-bromide sodium bromide [Na+].[Br-]
potassium-bromide potassium bromide [K+].[Br-]
sodium-iodide sodium iodide [Na+].[I-]
potassium-iodide potassium iodide [K+].[I-]
sodium-fluoride sodium fluoride [Na+].[F-]
calcium-chloride calcium chloride [Ca+2].[Cl-].[Cl-]
magnesium-chloride magnesium chloride [Mg+2].[Cl-].[Cl-]
sodium-nitrate sodium nitrate [Na+].[O-][N+](=O)[O-]
potassium-nitrate potassium nitrate [K+].[O-][N+](=O)[O-]
ammonium-chloride ammonium chloride [NH4+].[Cl-]