Does Not Divide in LaTeX (\nmid)
- LaTeX command
\nmid- Package
- Add to your preamble:
\usepackage{amssymb} - Mode
- Math mode only
- Copy the Unicode character
- ∤
U+2224
Where it is used
Slashed vertical bar stating that one integer does not divide another.
Number theorists write 3 \nmid 10 and use it in hypotheses such as Fermat's little theorem: if p \nmid a, then a^{p-1} \equiv 1 \pmod p. It is the negation of \mid and has the same relation spacing; \not\mid produces a slash that is often poorly placed, so prefer \nmid. Avoid a plain | with a slash typed by hand. In computer science it appears in conditions on strides, periods and hash table sizes, such as k \nmid n. Related precomposed negations include \nparallel and \nleq.
Also listed under: 컴퓨터 과학
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
Does Not Divide: $\nmid$
\[ p \nmid a \implies a^{p-1} \equiv 1 \pmod{p} \]
\end{document}Related symbols
All 정수론 →Frequently asked questions
- How do I write Does Not Divide in LaTeX?
- Type \nmid in math mode, for example $p \nmid a \implies a^{p-1} \equiv 1 \pmod{p}$. Load amssymb first with \usepackage{amssymb}.
- Which package do I need for \nmid?
- \nmid needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
- Can I use \nmid in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\nmid$ in running text. If you only need the glyph in text, paste the Unicode character ∤ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기