solve this
Answers
Step-by-step explanation:
TeX - LaTeX Stack Exchange
sign up log in
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
Questions Tags Users Badges Ask
up vote
28
down vote
favorite
Is there a way to produce this division symbol? ÷
symbols
Is there a way to produce this division symbol? ÷
The term \div gives an error of Missing $ inserted.
\÷ is not working either.
share improve this question
asked
Apr 10 '13 at 23:41
lawlist
1,162●11 gold badge●1212 silver badges●1717 bronze badges edited
Apr 10 '13 at 23:49
lockstep
212k●5757 gold badges●630630 silver badges●737737 bronze badges
10
I guess you have not tried $\div$, correct? – Werner Apr 10 '13 at 23:41
11
\div is a mathematical symbol, so it should be inside a math formula: $6\div 3=2$ should work. If you want to use it in text, do \usepackage{textcomp} and use \textdiv. – egreg Apr 10 '13 at 23:46
No, I hadn't tried with dollar signs or with the textcomp package. Thank you all so very much -- greatly appreciated! – lawlist Apr 11 '13 at 3:17
add a comment
2 Answers
order by
up vote
51
down vote
accepted
Werner's and egreg's comments are correct: you should still use \div, but inside of math mode.
So: $6 \div 3 = 2$.
$6 \div 3 = 2$
share improve this answer
community wiki
Matthew Leingang answered
Apr 11 '13 at 1:06
1
@lawlist: your upvote (and check if this the answer you adopt) are thanks enough. – Matthew Leingang Apr 11 '13 at 3:19
add a comment
up vote
15
down vote
The questioner said: Is there a way to produce this division symbol? ÷
And I said:
With PSTricks
enter image description here
\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...
enter image description here
\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}
share improve this answer
answered
Apr 11 '13 at 0:05
kiss my armpit
27.9k●2222 gold badges●188188 silver badges●427427 bronze badges edited
Apr 11 '13 at 5:10
14
It seems gratuitous to use TikZ or PSTricks to recreate a symbol that is in the basic set of math fonts. I can't think of any reason to adopt this answer over just \div, and worse, it might intimidate a novice user. (As I make this comment I see someone else has already downvoted.) – Matthew Leingang Apr 11 '13 at 1:02
@MatthewLeingang: It depends on the context of use that has not been clearly defined in the question. – kiss my armpit Apr 11 '13 at 1:14
11
@Karl'sstudents May be write in bold at Starting of Answer Warning:Overkill solution Don't Use routinely, Only for fun to make your attempt explicit so that there will be no Downvotes. I did not downvote as i know you are very knowledgeable person :). – texenthusiast Apr 11 '13 at 3:32
2
This above solution has the definite weakness of not resizing in sub/scripts and other such situations, in contrast to \div. – Andrew Swann Apr 14 '13 at 13:45
2
@AndrewSwann: You are not absolutely wrong. :-) – kiss my armpit Apr 14 '13 at 13:58
show 5 more comments
Your Answer
Body
Add picture
Log in
OR
Name
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
meta chat tour help blog privacy policy legal contact us full site
2019 Stack Exchange, Inc