Mi è venuta in mente una soluzione, ma non so come implementarla perchè non conosco il linguaggio di programmazione per LaTex.
La soluzione sarebbe, anzichè usare:
`
renewcommand{\nomgroup}[1]{%
\if#1C%
\formattitle{Abbreviation}%
\else
\if#1A%
\formattitle[0pt]{Symbols}%
\else
\if#1B%
\formattitle{Subscripts}%
\else
\if#1D
\formattitle{Notation}
\else
\GenericError{\string\nomgroup}{The argument can be only A, B, C or D}{}{}%
\fi
\fi
\fi
\fi}
\newcommand{\formattitle}[2][15pt]{\vspace{#1}\item[\sffamily #2]}
`
usare qualcosa del tipo:
`
renewcommand{\nomgroup}[1]{%
\if#1C OR 1Ca OR 1Cb OR 1Cc OR 1Cd etc
\formattitle{Abbreviation}%
\else
\if#1A OR 1Aa OR 1Ab OR 1Ac OR 1Ad etc
\formattitle[0pt]{Symbols}%
\else
\if#1B% OR 1Ba OR 1Bb OR 1Bc etc.
…
`
e così via…
Può funzionare? Chi mi aiuta a scriverlo correttamente?