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.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث