[Tex/LaTex] How to write left arrow with a dollar sign
symbols
I want to write something like this:
But doing \leftarrow{\$} does not produce the desired result. Any ideas?
Best Answer
Something like this?
\documentclass{article}
\begin{document}
$ {\leftarrow}\vcenter{\hbox{\scriptsize\rmfamily\upshape\$}} $ or
$ {\leftarrow}\vcenter{\hbox{\tiny\rmfamily\upshape\$}} $
\end{document}
Addendum, to incorporate some additional information provided by the OP in comment. It looks like this symbol should be assigned the type "mathrel" ("relational operator"). E.g., one could define a macro called (say) \getsdollar as follows:
The table you show is relative to the symbols provided by mathabx. One can say
\usepackage{mathabx}
but this will change many symbols and not always in a desirable way.
For negated relations one can first try preceding the command by \not:
\not\approx
The placement of the diagonal bar is not always ideal, which is why the negation of \in has its own command \notin. In the case of \not\approx there is no problem.
Here's a visual comparison: above the normal rendition of the symbol, using Computer Modern Math Symbols, below the mathabx rendition. A difference in shape is evident.
Best Answer
Something like this?
Addendum, to incorporate some additional information provided by the OP in comment. It looks like this symbol should be assigned the type "mathrel" ("relational operator"). E.g., one could define a macro called (say)
\getsdollar
as follows:and then write
x\getsdollar \mathbb{Z}/n\mathbb{Z}
in the body of the document (in math mode, of course).