Is there a way to produce this division symbol? ÷
Werner's and egreg's comments are correct: you should still use \div
, but inside of math mode.
So: $6 \div 3 = 2$
.
The questioner said: Is there a way to produce this division symbol? ÷
And I said:
With PSTricks
\documentclass[pstricks,border=3pt]{standalone}
\begin{document}
\begin{pspicture}(4,4)
\psline[linewidth=10pt](0,2)(4,2)
\pscircle*(2,0.75){15pt}
\pscircle*(2,3.25){15pt}
\end{pspicture}
\end{document}
With TikZ
\documentclass[tikz,border=3pt]{standalone}
\begin{document}
\begin{tikzpicture}(4,4)
\draw[line width=10pt,fill=black]
(0,2) -- (4,2)
(2,0.75) circle (15pt)
(2,3.25) circle (15pt);
\end{tikzpicture}
\end{document}
Miscellaneous
If you need a fancier div symbol...
\documentclass[pstricks,border=3pt]{standalone}
\usepackage{graphicx}
\makeatletter
\pstVerb{/ptcm {\pst@number\psunit\space div} bind def}
\makeatother
\SpecialCoor
\begin{document}
\begin{pspicture}(4,4)
\psclip
{
\pscustom[dimen=middle]
{
\psframe[linewidth=10pt](!0 2 5 ptcm sub)(!4 2 5 ptcm add)
\moveto(!2 15 ptcm add 0.75)
\pscircle(2,0.75){15pt}
\moveto(!2 15 ptcm add 3.25)
\pscircle(2,3.25){15pt}
}
}
\rput(2,2){\includegraphics[width=4cm]{example-grid-100x100pt}}
\endpsclip
\end{pspicture}
\end{document}