\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{empheq}
\makeatletter
\newcommand*{\pmzerodot}{%
\nfss@text{%
\sbox0{$\vcenter{}$}% math axis
\sbox2{0}%
\sbox4{0\/}%
\ooalign{%
0\cr
\hidewidth
\kern\dimexpr\wd4-\wd2\relax % compensate for slanted fonts
\raise\dimexpr(\ht2-\dp2)/2-\ht0\relax\hbox{%
\if b\expandafter\@car\f@series\@nil\relax
\mathversion{bold}%
\fi
$\cdot\m@th$%
}%
\hidewidth
\cr
\vphantom{0}% correct depth of final symbol
}%
}%
}
\makeatother
\begin{document}
\begin{empheq}{align}
0 + 1 = 1
\end{empheq}
\end{document}
How to add \pmzerodot
in equation number?
Related to: Inserting slashed zero in non-OpenType supporting LaTeX
Best Answer
The following example defines
\dotarabic
, which similar to\arabic
prints the arabic form of a counter with the zeros exchanged by\pmzerodot
.\theequation
is redefined to use\dotarabic
instead of\arabic
(or\arabic
can be redefined, if the zero with dot should be used by all counter outputs).Furthermore
\pmzerodot
is made robust, because\the<counter>
are subject to the\label
/\ref
system. Fragile commands will break during the definition of the internal\@currentlabel
.Full example: