I wanna to write a symbol like this:
I tried\dashcong but it did not work. Does it require a new command? I hope someone can share the code.
I wanna to write a symbol like this:
I tried\dashcong but it did not work. Does it require a new command? I hope someone can share the code.
You can make your own symbol using the techniques from this post. Here is a version using reflectbox from the graphicx package to make a reflected \cong symbol. Then \ooalign is used to superimpose two white rules to make the dash pattern. You can adjust the spacing of the dashes to your liking.
If you want your symbol to adjust to scriptsize you can use \mathpalette or \mathchoice. See here or here.
\documentclass{article}
\usepackage{graphicx} %for \reflectbox
\usepackage{color} %for \textcolor
\newcommand{\dashcong}{\mathrel{\ooalign{\reflectbox{$\cong$}\cr\hfil\textcolor{white}{\rule[.5ex]{.13em}{.3ex}\hspace{.13em}\rule[.5ex]{.13em}{.3ex}}\hfil\cr}}}
\begin{document}
$A\dashcong B$
\end{document}
\oversetfromamsmath. (You’d needaligned-oversetif you want to be able to align your equations at this symbol.) – Davislor May 17 '20 at 01:45\mathrel. – Davislor May 17 '20 at 01:50