My aim is to construct a relational symbol which is graphically equivalent the standard infinity sign (coded by\infty
) crossed exactly in the middle of it. Yet I am not able to overcome something. To be more precise:
I would like to have slash sign moved exactly to the middle position of the infinity sign. The above was defined in the following way:
\documentclass{standalone}
\begin{document}
\newlength{\length}
\settowidth{\length}{$\infty$}
\newcommand\ninfty{\mathrel{\infty\hspace{-0.5\length/}}}
$\ninfty$ is not what I am aiming at.
\end{document}
So as you can see my idea was to define the length equal to the length of the infinity sign and then place slash sigh it halfway through it. As it can be seen above it was rather please quarter-way (backwards).
Could you please explain what I did wrong and how can I exactly determine the middle point (in terms of width) of a given mathematical glyph? Or a glyph in general?
/
to the middle of\infty
you just want to backspace by half the difference between the width of \infty and the witdh of /