[Tex/LaTex] How to write left arrow with a dollar sign


I want to write something like this: enter image description here

But doing \leftarrow{\$} does not produce the desired result. Any ideas?

Best Answer

Something like this?

enter image description here

$ {\leftarrow}\vcenter{\hbox{\scriptsize\rmfamily\upshape\$}} $ or 
$ {\leftarrow}\vcenter{\hbox{\tiny\rmfamily\upshape\$}} $ 

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).

Related Question