When compiling the code
\documentclass{article}
\usepackage{chemnum}
\begin{document}
\cmpd*[label-format=\bfseries\textsuperscript,pre-label-code=\textbf{Me\textsubscript{2}L}]{Me2bdc}
\resetcmpd[1]
\cmpd*[label-format=\bfseries\textsuperscript,pre-label-code=\textbf{H\textsubscript{2}L}]{H2bdc}
\cmpd{Me2bdc} and \cmpd{H2bdc}
\cmpd[format=\bfseries\textsuperscript]{Me2bdc} and \cmpd[format=\bfseries\textsuperscript]{H2bdc}
\end{document}
using pdflatex, the following will be rendered:
where the second line represents what was intended here.
According to the chemnum manual, label-format
should be used to alter a label's property, while format
is used where the display of individual instances of \cmpd
is to be altered locally. However, the definition of label-format=\bfseries\textsuperscript
seems to have no effect on the diplay of 1 (see first line). Only when format=\bfseries\textsuperscript
is used during calling the respective compound, the formatting will take place (second line). What am I getting wrong here? Using chemnum 1.2c from an up-to-date TeX Live 2019.