I can get circle and triangle - but I am unable to get \Box, any ideas?
$\Box$ [$L_{\beta}$] $\triangle$ [$L_{\beta'}$] $\bigcirc$ [$L_{\alpha}$]
Text Formatting ⇒ attempting to get \Box
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
attempting to get \Box
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
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
Hi
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.
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: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
attempting to get \Box
Hi,
Next time please provide more information, for instance which packages you're already using.
Stefan
load the package amssymb or latexsym. For example:diruptivetechnology wrote:but I am unable to get \Box
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amssymb}\begin{document}$\Box$\end{document}
Stefan
LaTeX.org admin