I recently moved over to luaLaTeX from pdfLaTeX which means I am no longer quite so font-constrained. I found this answer which shows how to load this alphabet of upright Greek letters instead of the math alphabet. I don't want to load them in place of the math alphabet, I want that to stay italic. I want to use them for commands like \chemalpha to replace the commands from the chemgreek package. Alternatively, making chemgreek use this alphabet would work, though I can manually write each command if need be.
I made this example, but it doesn't actually work, it replaces the wrong alphabet and the \newcommand{\chemalpha}{α} don't actually DO anything as it has no idea what α is.
\documentclass{article}
\usepackage[math-style=upright]{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont[range=up/{Latin,latin,Greek,greek}]{CMU Serif Upright Italic}
\usepackage{cfr-lm}
\newcommand{\chemalpha}{α}
\newcommand{\chembeta}{β}
\newcommand{\chemeta}{η}
\newcommand{\chemkappa}{κ}
\begin{document}
( \alpha + \beta = \pi )
([^{\text{n}}\text{Bu}_4 \text{N}]_2 [(\text{UO}_2 )_2 (µη^{2}:η^{2}O_2 )(NO_3 )_2 (µ\text{Au(CN)}_2 )_2 ])
\chemalpha
\chembeta
\chemeta
\chemkappa
\end{document}

\mathrmfont chemical elements. If you use\text, the formatting of the surrounding text will bleed through. – Davislor Dec 29 '20 at 01:07\setmathrm{CMU Serif}or loadnewcomputermodernto get a Computer Modern font that contains upright Greek. – Davislor Dec 29 '20 at 01:11\setmathfont[range=...command, you would use\symupto get the upright symbols from the math alphabet. Note that there are upright Greek letters in every OpenType math font. – Davislor Dec 29 '20 at 01:13cfr-lmis a legacy package that you would not use together withfontspec. – Davislor Dec 29 '20 at 01:14\chemalpha, etc., are not working because you used them in text mode instead of math mode. The default text font, Latin Modern Roman, has no Greek letters. They will work if you load New Computer Modern or CMU Serif, which do. – Davislor Dec 29 '20 at 01:16\usepackage{newcomputermodern}\usepackage{chemgreek}\selectchemgreekmapping{fontspec}seems to work just nicely – cgnieder Dec 29 '20 at 08:47chemgreekviachemformula. Now I just need to figure out how to use the right version of κ – Canageek Dec 29 '20 at 20:59