Skip to content

Template browser

The Template Library dialog places a prebuilt structure, such as caffeine, tetrahydrofuran, a Boc group, or a chair conformation, so that you do not have to draw it bond by bond. To open it, click Insert > Templates, press Ctrl+Shift+T or Shift+T, or click the Templates button in the action bar.

The Template Library: a search field across the top, the categories in groups down the left side with a count beside each, a grid of template cards in the middle, each with its drawing, name, and formula, and on the right a large drawing of one template with its formula, molar mass, other names, and SMILES.
The Template Library, showing all templates.

The library holds more than 700 templates in seven groups: Basics (small molecules, acids, bases, and ions, drawn as Lewis structures), Organic families, Functional groups and substituents, Rings and aromatics, Biomolecules, Medicine and nature, and Lab (solvents and reagents), followed by the Fischer, Newman, Haworth, and chair templates.

Type in the search box to search every category at once: by name (caffeine), by abbreviation (DMSO, Boc, THF), by formula typed plainly (C6H6), or by category words (amino acid). Every word you type must match, and the closest matches come first: a name or abbreviation that is exactly what you typed, then one that starts with it. The line above the grid says how many templates match.

To browse instead, click a category in the sidebar. All shows every template, and Recent lists the templates you placed most recently. The library opens on the category you used last.

You can use the library from the keyboard. Press Down in the search box to move into the results, use the arrow keys to move between cards, and press Enter to place the card that has the focus. Enter in the search box places the first result.

The pane on the right shows the template under the pointer, or the one that has the keyboard focus: a large drawing, its formula, molar mass, other names, the categories it is in, and its SMILES. Every drawing, in the cards and in the pane, uses the document’s current preset, color scheme, and theme, so a template looks the way it will look when you place it.

Each named template comes from its PubChem record; the details pane shows the record’s number (CID). The functional groups, substituents, and protecting groups are fragments with an R where they attach.

  1. Click a card, or click Place on canvas in the details pane. The dialog closes, the pointer becomes a crosshair, and a faint preview of the template follows the pointer.
  2. Click the canvas where you want the structure.

To cancel without placing anything, press Esc or right-click.

The placed structure is selected and the Select tool becomes active, so you can move the structure into position, and one Undo removes it. A projection template (Fischer, Newman, Haworth, chair) is placed as a projection instead, and the tool stays as it was. Templates are scaled to the document’s bond length, so they match what you have already drawn.

To add lone pairs to every atom of the templates you place, select Add lone pairs at the bottom of the dialog. Molkit works out the lone pairs from each atom’s bonding. The templates drawn as Lewis structures (the basics) already have their lone pairs. The setting lasts until you reload the app.

Templates from the four projection categories are placed as projections. A Fischer template is a working Fischer projection, a Newman template can be rotated like any Newman projection, and so on. Edit them the same way as projections you build yourself. See Projections.

To place any compound by name, select Insert > Insert by Name or SMILES… and type the name; Molkit looks it up on PubChem (see SMILES). In Molkit Script, draw propranolol does the same. See Draw.

  • Projections, for editing placed Fischer, Newman, Haworth, and chair templates
  • Abbreviations, for collapsing groups into short labels instead of drawing them
  • Perspective drawing, for the cages and bridged rings, which are drawn in perspective