What would the best way to typeset HI to designate molecular gas as in the title of this article, with a capital H and a slightly smaller numeral I ? I am using the scrbook class.
I tried to define
\newcommand{\HI}{H {\uppercase{\romannumeral 1}} }
but this results in H i, with a lowercase i.
I also tried
\newcommand*{\HI}{\textsc{Hi}}
but this doesn't behave properly when I use it in \section{}, resulting in "H i" rather than "H I".
I also haven't found anything like this in chemmacros, which is more geared towards chemists.
This is a standard way of writing molecules in astrophysics, so I'm surprised there isn't a package that does this easily.



\uppercaseand\romannumeralthey would just generate a normal I anyway so you could simply use HI – David Carlisle Mar 08 '19 at 09:24\textsc{Hi}– David Carlisle Mar 08 '19 at 09:29HandImakes it difficult in reading as one "thing" and possibly the author would try to use another way of defining a command in future edition of this article. @DavidCarlisle's above comment would give a better result I suppose. – koleygr Mar 08 '19 at 09:42H\,{\footnotesize I}- however I don't think this is the best way to go (you can download the tex source of the article from https://arxiv.org/format/1608.02601) – samcarter_is_at_topanswers.xyz Mar 11 '19 at 10:55\ionmacro from the "Astronomy & Astrophysics" journal class: https://fits.gsfc.nasa.gov/standard30/aa.cls – samcarter_is_at_topanswers.xyz Mar 11 '19 at 12:55