Text Formatting ⇒ attempting to get \Box
-
- Posts: 3
- Joined: Tue Jul 20, 2010 7:10 pm
attempting to get \Box
$\Box$ [$L_{\beta}$] $\triangle$ [$L_{\beta'}$] $\bigcirc$ [$L_{\alpha}$]
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
attempting to get \Box
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 3
- Joined: Tue Jul 20, 2010 7:10 pm
Re: attempting to get \Box
I want to get a box displayed within the $ $ symbols. I find that I can get the triangles and circles with $\triangle$ but $\Box$ does not work. I cannot figure out why this may be so when the \Box is labelled along with the \triangle symbol in most user guides. I wonder what is causing this?
The/op I get is confusingly:
! Missing number, treated as zero.
-
- Posts: 3
- Joined: Tue Jul 20, 2010 7:10 pm
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
attempting to get \Box
load the package amssymb or latexsym. For example:diruptivetechnology wrote:but I am unable to get \Box
Code: Select all
\documentclass{article}
\usepackage{amssymb}
\begin{document}
$\Box$
\end{document}
Stefan