| 1 |
# orbitals |
| 2 |
|
| 3 |
Atomic subshell / orbital-box diagrams for LaTeX, with automatic electron |
| 4 |
filling following Hund's rule and the Pauli principle. |
| 5 |
|
| 6 |
* Version: 1.0 |
| 7 |
* Date: 2026/05/24 |
| 8 |
* Author: Faris Hameed |
| 9 |
* email: [email protected] |
| 10 |
* License: LaTeX Project Public License (LPPL) v1.3c |
| 11 |
* Status: maintained |
| 12 |
|
| 13 |
## Description |
| 14 |
|
| 15 |
`orbitals` draws the familiar "box-and-arrow" notation for atomic subshells |
| 16 |
(s, p, d, f). You give only the principal quantum number, the subshell letter |
| 17 |
and the number of electrons; the package fills the boxes automatically (one |
| 18 |
spin-up arrow per box first, then pairing), reproducing the high-spin |
| 19 |
free-atom ground state. |
| 20 |
|
| 21 |
It can draw: |
| 22 |
|
| 23 |
* a single subshell (`\suborbital`), |
| 24 |
* a row of subshells (`\electronconfig`), |
| 25 |
* a valence configuration with a noble-gas core (`\atomconfig`), |
| 26 |
* an empty transition-series template (`\transitionseries`). |
| 27 |
|
| 28 |
Every diagram can be scaled and placed inline in running text. Colours, box |
| 29 |
size, spacing and arrow shape are configurable. |
| 30 |
|
| 31 |
## Requirements |
| 32 |
|
| 33 |
* LaTeX2e (kernel 2020-10-01 or newer, for `\NewDocumentCommand`) |
| 34 |
* TikZ / pgf |
| 35 |
* xcolor, graphicx (loaded automatically with TikZ) |
| 36 |
* mhchem (optional; only for the `\chem` helper) |
| 37 |
|
| 38 |
Engines: pdfLaTeX, XeLaTeX or LuaLaTeX. |
| 39 |
|
| 40 |
## Installation |
| 41 |
|
| 42 |
Copy `orbitals.sty` to your local texmf tree, e.g. |
| 43 |
|
| 44 |
<TEXMFHOME>/tex/latex/orbitals/orbitals.sty |
| 45 |
|
| 46 |
and refresh the filename database (`texhash` / `mktexlsr`) if your tree needs |
| 47 |
it. For a single document you may simply place `orbitals.sty` next to the |
| 48 |
`.tex` file. |
| 49 |
|
| 50 |
## Usage |
| 51 |
|
| 52 |
\usepackage{orbitals} |
| 53 |
... |
| 54 |
\suborbital{4}{p}{5} |
| 55 |
\electronconfig{3d6,4s2,4p0} |
| 56 |
\atomconfig[{\textsubscript{18}[Ar]}][1.2]{3d6,4s2,4p0} |
| 57 |
\transitionseries{1} |
| 58 |
|
| 59 |
See `orbitals-doc.pdf` for the full manual. |
| 60 |
|
| 61 |
## Files |
| 62 |
|
| 63 |
* `orbitals.sty` -- the package |
| 64 |
* `orbitals-doc.tex` -- manual source |
| 65 |
* `orbitals-doc.pdf` -- compiled manual |
| 66 |
* `README.md` -- this file |
| 67 |
|
| 68 |
## License |
| 69 |
|
| 70 |
Copyright (C) 2026 Faris Hameed. |
| 71 |
|
| 72 |
This work may be distributed and/or modified under the conditions of the |
| 73 |
LaTeX Project Public License, version 1.3c of this license |
| 74 |
https://www.latex-project.org/lppl.txt |