Text Formattingattempting to get \Box

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
diruptivetechnology
Posts: 3
Joined: Tue Jul 20, 2010 7:10 pm

attempting to get \Box

Post by diruptivetechnology »

I can get circle and triangle - but I am unable to get \Box, any ideas?

$\Box$ [$L_{\beta}$] $\triangle$ [$L_{\beta'}$] $\bigcirc$ [$L_{\alpha}$]

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

diruptivetechnology
Posts: 3
Joined: Tue Jul 20, 2010 7:10 pm

Re: attempting to get \Box

Post by diruptivetechnology »

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.
diruptivetechnology
Posts: 3
Joined: Tue Jul 20, 2010 7:10 pm

Re: attempting to get \Box

Post by diruptivetechnology »

User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

attempting to get \Box

Post by Stefan Kottwitz »

Hi,
diruptivetechnology wrote:but I am unable to get \Box
load the package amssymb or latexsym. For example:

Code: Select all

\documentclass{article}
\usepackage{amssymb}
\begin{document}
$\Box$
\end{document}
Next time please provide more information, for instance which packages you're already using.

Stefan
LaTeX.org admin
Post Reply