CTAN update: chemidentifier
### Fixed - `\chemidscheme` crashed with a raw Lua error (`attempt to index a nil value`) when used before any `\chemidkey` or `\chemidnote` had run earlier in the document. An unlabelled scheme (a lone structure, a graphical abstract, a figure whose labels are already typeset) is a legitimate use of `\chemidscheme` and is now simply typeset verbatim. Fixed identically in `chemidentifier-v2.sty` and the frozen `chemidentifier-v1.sty`. - The text substitution performed by `\chemidscheme` was a plain, unanchored substring replacement applied to *every* line of the `.pdf_tex`, including the `\includegraphics` line. A motif that happens to be a substring of the companion PDF's file name — easy to trigger, since both are usually named after the compound — rewrote the image path itself and broke the figure with an obscure `\csname` error. The `\includegraphics` line is now left untouched, and a new warning names the motif and the figure when this would have happened, instead of failing silently downstream. ### Changed - **`links` (version 2, `\chemidsetup`) now defaults to `false` instead of `true`.** Compounds are typeset as plain numbers by default; add `links=true` — as a package option (`\usepackage[links=true]{chemidentifier}`) or via `\chemidsetup` — to restore clickable links and anchors as before. This only affects version 2 (`\usepackage[version=2]` or the default); version 1 has no `links` key and is unaffected.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/chemidentifier The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/chemidentifier/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
Chemidentifier – Synthesis-order numbering and hyperlinking of chemical compounds
This package numbers the compounds of a synthesis-chemistry paper in the logical order of the synthesis – the order in which they are declared – rather than the order in which they first appear in the text. Every printed number is clickable and jumps to the scheme or paragraph that introduces the compound.
Three commands cover the common case: \chemid* declares a compound (optionally with a rich display form and a raw bookmark form), \chemid uses it anywhere in running text, captions or headings, and \chemidhere marks the point a number should link to – typically next to a reaction scheme. Multiple declarations and uses are accepted as comma-separated lists and are automatically contracted into ranges (1a-c) or contiguous groups (1a,b) the way a human author would write them by hand.
Compounds can be organized in a single level of parent/child hierarchy (benz, benz.cl, benz.br...), and \chemidfamily declares a templated family where the numbering style, child format (subscript, superscript, Greek letters...) and a placeholder value are set once for every child.
The package is written in LaTeX3 (expl3). Like \ref/\label, numbering and links settle over two compilations. It works with or without hyperref, and with pdfLaTeX, LuaLaTeX and XeLaTeX; an optional LuaLaTeX-only helper substitutes compound labels directly inside Inkscape-exported .pdf_tex figures.
Version 2 (the default) adds templated families, anchors that carry the links themselves, and stricter validation; version 1 is frozen and stays available via the version=1 package option for documents written against it.
| Paket | Chemidentifier |
| Version | 2.0.1 2026-09-20 |
| Copyright | 2026 Aliocha SKRZYPCZAK |
| Betreuer | Aliocha Skrzypczak |