I am trying to setup my acronym list and I'm trying to use C# as an acronym but
\acro{C#}{Eine Programmiersprache von Microsoft}
Doesn't work since # is a reserved character so it gives the error
Illegal parameter number in definition of \reserved@a. \acro{C#}
So I tried to escape it as \#. This also doesn't work however:
\acro{C\#}{Eine Programmiersprache von Microsoft}
Missing \endcsname inserted. \acro{C\#}{Eine Programmiersprache von Microsoft}
I also googled Missing \endcsname which seems to be caused by an illegal character which has to be \ here.
I also saw some answers about catcode but it was encouraged not to use it if there is another solution.
Is there another solution?
Or should I rather use C Sharp in the acronym list? And if so, how do I still use C# in the text?
math command outside math envand if I try to compile it I get the same error (Missing \endcsname ...) as when I try\#– IDarkCoder Oct 23 '19 at 10:37\acro{Csharp}[C\#]{Eine Programmiersprache von Microsoft}and then useCsharpas label. – campa Oct 23 '19 at 10:42\acused{C Sharp}. Mind posting that as an answer so I can accept it? – IDarkCoder Oct 23 '19 at 10:51