Not Necessary in LaTeX (\neg\Box)
- LaTeX command
\neg\Box- Package
- Add to your preamble:
\usepackage{amssymb} - Mode
- Math mode only
Where it is used
Negated necessity: \neg\Box p says p is not necessary, which is equivalent to \Diamond\neg p.
The duality \neg\Box p \leftrightarrow \Diamond\neg p lets you push negations inward, the modal counterpart of De Morgan's laws for quantifiers. Semantically it holds at a world when some accessible world falsifies p. \neg is an ordinary symbol, so \neg\Box p sets tightly; write \lnot if you prefer, it is an alias. For a struck-through box there is no standard single command, and a combined glyph would confuse readers, so keep the two-symbol form. In epistemic readings, \neg K_a p says the agent does not know p, which is weaker than knowing \neg p.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Not Necessary: $\neg\Box$
\[ \neg \Box p \leftrightarrow \Diamond \neg p \]
\end{document}Related symbols
- Not Possible
\neg\Diamond - Possibly
\Diamond - Necessary Implication
\Box(p \to q) - D'Alembertian
\Box - Possible Conjunction
\Diamond(p \land q) - Knows
K_a p
Frequently asked questions
- How do I write Not Necessary in LaTeX?
- Type \neg\Box in math mode, for example $\neg \Box p \leftrightarrow \Diamond \neg p$. Load amssymb first with \usepackage{amssymb}.
- Which package do I need for \neg\Box?
- \neg\Box needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
- Can I use \neg\Box in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\neg\Box$ in running text.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기