Code: Select all
\makeatletter % not necessary when this code is in a .sty file
% 1st part
\DeclareMathSymbol{\punctcomma}{\mathpunct}{letters}{"3B}
\DeclareMathSymbol{\decimalcomma}{\mathord}{letters}{"3B}
% 2nd part
\AtBeginDocument{\mathcode‘\,="8000}
{\catcode‘\,=\active \gdef,{\futurelet\let@token\m@thcomma}}
% 3rd part
\def\m@thcomma{\let\@tempB\punctcomma
\@tfor\@tempA:=0123456789\do{%
\expandafter\ifx\@tempA\let@token\let\@tempB\decimalcomma
\@break@tfor\fi}\@tempB}
Code: Select all
! Missing number, treated as zero.
<to be read again>
‚
l.10 {\catcode‚
Äò\,=\active \gdef,{\futurelet\let@token\m@thcomma}}
?
Code: Select all
\documentclass{article}
\usepackage{intcomma}
\begin{document}
\end{document}
As I do not write packages myself, any help is appreciated.