Skip to content

Styles & Substructure Highlights ​

All 8 structure image functions (=SMILES2IMG, =NAME2IMG, =INCHI2IMG, =KET2IMG, and their .FLOAT equivalents) use the exact same 2nd ([background]), 3rd ([style]), and 4th ([transform]) arguments—so one style vocabulary controls monochrome journals, dark mode, highlights, and labels across every formula.

Styling & Highlighting SheetA1:B4
Paste at A1
1ASMILESBFormulaDescriptionResultCopy
2CC(=O)Oc1ccccc1C(=O)O=SMILES2IMG(A2, "", "bw")ACS monochrome black-and-white line artB&W image
3CC(=O)Oc1ccccc1C(=O)O=SMILES2IMG(A3, "#1E293B", "white")Dark slate cell background with white bondsDark Mode
4CC(=O)Oc1ccccc1C(=O)O=SMILES2IMG(A4, "", "hl:c1ccccc1")Color highlight on benzene substructure atomsHighlighted

1. Shared 4-Argument Anatomy ​

ArgumentPositionDefaultSupported Values
input1st(Required)SMILES, Name/CAS, InChI, or KET cell/string
[background]2nd"" (trans)"" / "trans", "white", CSS color ("yellow"), or #RRGGBB hex fill
[style]3rd"" (color)"color", "bw", "white", "ink=#HEX", "hl:<smarts>", "num", "stereo", "h", "all-c"
[transform]4th"""rot90", "rot180", "rot270" (also accepted inside [style])

Shortcut for Monochrome ("bw")

Pass "bw" (or FALSE) directly in the 2nd argument to skip empty quotes: =SMILES2IMG(A2, "bw") and =NAME2IMG("Aspirin", "bw").

2. Copy-Ready Style, Highlight & Transform Matrix ​

Customize background [bg] and [style] tokens per cell.
Target LookFormula ExampleVisual Effect
Standard IUPAC Color=SMILES2IMG(A2)Colored heteroatoms (O red, N blue) over transparent cells
ACS Journal Monochrome=SMILES2IMG(A2, "", "bw")Publication black-and-white line art (mono, black, grayscale)
Opaque White Card Box=SMILES2IMG(A2, "white", "bw")Solid white fill—blocks shaded cell backgrounds behind the drawing
Dark Mode (White Ink)=SMILES2IMG(A2, "#1E293B", "white")Crisp white bonds over dark navy/slate dashboard cells
Custom Brand Ink Color=SMILES2IMG(A2, "", "ink=#1E40AF")Custom hex/CSS bond color (line=#HEX, base=#HEX)
Substructure Highlight=SMILES2IMG(A2, "", "hl:c1ccccc1")Colors matching SMILES/SMARTS substructure atoms and bonds
Dynamic Header Highlight=SMILES2IMG(A6, "", "hl:"&$B$3)Edit query cell $B$3 once to re-highlight an entire screening table
NMR Atom Numbers & Stereo=SMILES2IMG(A2, "", "num stereo")1-based atom indices (1, 2, 3...) and CIP R/S, E/Z descriptors
Explicit H & Carbon Vertices=SMILES2IMG(A2, "", "h all-c")Unfolds explicit -H atoms and draws C symbols on carbons
2D Planar Rotation=SMILES2IMG(A2, "", "rot90")Clockwise 90° / 180° / 270° planar rotation (preserves chiral R/S configuration)

3. Combine Tokens & Lossless Batch Restyling ​

  • Flexible Delimiters: Separate multiple [style] tokens using spaces ("bw num"), commas ("bw, num"), pipes ("bw|num"), semicolons ("bw;num"), or + ("bw+num").
  • Background & Ink Aliases: Transparent backgrounds accept "", "trans", "transparent", "none", "clear", and "nobg" (or "bg=#HEX" for solid fills); custom ink accepts "ink=#HEX", "line=#HEX", and "base=#HEX".
  • Pure EPAM Indigo Labeling: Without explicit "h" or "all-c", rendering delegates cleanly to EPAM Indigo's terminal-hetero mode (for molecules with ≤4 heavy atoms) and hetero mode (larger molecules), with no heuristic pseudo-methyl/chiral-H overrides.
  • Stereochemistry Preservation (flip Ignored): Planar rotations "rot90", "rot180", and "rot270" preserve absolute 2D stereochemistry; legacy horizontal/vertical reflection tokens (flip, flipx, flipy) are silently ignored so R/S configurations cannot be accidentally inverted.
  • Lossless Sheet Conversion: Restyle hundreds of existing structure formulas at once with [SMILES] ➔ [Batch Style]—preserving existing hl:, num, stereo, h, all-c, and rot90/rot180/rot270 options (Batch Style, TSV, 3D).

Released under the MIT License.