Is there a slashed zero symbol in the standard LaTeX font that's accessible with pdflatex et al? I greped through the comprehensive symbols list a bit but didn't spot anything.
In XeLaTeX I can use the OpenType feature +zero
on supported fonts. For instance, with Calluna by Exljbris I can do something like this:
\documentclass{minimal}
\usepackage{fontspec}
\newcommand*{\defaultfontfamily}{Calluna}
\setmainfont[Mapping=tex-text]{\defaultfontfamily}
\newcommand*{\lnum}[1]{{\fontspec[RawFeature={+lnum}]{\defaultfontfamily}#1}}
\newcommand*{\zero}[1]{{\fontspec[RawFeature={+zero}]{\defaultfontfamily}#1}}
\newcommand*{\zerolnum}[1]{{\fontspec[RawFeature={+lnum,+zero}]{\defaultfontfamily}#1}}
\begin{document}
0\zero{0}\lnum{0}\zerolnum{0}
\end{document}
and get a few different types of zero:
However, I'd love to find a way to do this in non-OpenType supporting LaTeX engines.
P.S. \(\emptyset\)
, \(\slashed{0}\)
, and the like don't count. I'm mostly interested in text mode, but if you have a solution for text mode and math mode that would be nice too. Also, before someone says it, \o
and \O
are letters, not numbers. They don't count either!
+zero
”? The OpenType font featurezero
, I presume; it is not part of Unicode but of OpenType. When supported, it simply selects a slashed glyph for digit 0, when available in a font. When the feature is not available, you would need to use a font where the normal glyph for digit 0 is slashed – or to use some technique that lays a slash over digit 0.