System of congruences, modular arithmetic
System of congruences, modular arithmetic

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.

Stack Exchange network consists of 182 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

TeX – LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.

Sign up to join this community

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.

\oversetfromamsmath. (You’d needaligned-oversetif you want to be able to align your equations at this symbol.)\mathrel.

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}

You are watching: How to write a dashed congruent sign?. Info created by Bút Chì Xanh selection and synthesis along with other related topics.