Generalsquaring the circle - or how to get a small square!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mhesse
Posts: 1
Joined: Thu Jul 26, 2007 11:22 am

squaring the circle - or how to get a small square!

Post by mhesse »

the square you get from the command \square is much bigger than the circle I get from the command \circ. I would like to use squares and circles in a common legend and would hence like a square that is compatible in size with \circ (i.e. smaller). I can't figure out how.

I have seen that there is a command \sq but I always get an error when I am compiling.
Thanks
Marc

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

squaring the circle - or how to get a small square!

Post by localghost »

Just use a switch to change the font size.

Code: Select all

$\square$ {\scriptsize $\square$} $\circ$
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

squaring the circle - or how to get a small square!

Post by gmedina »

Another option is to scale the square using the \scalebox command of the graphicx package. In this case, you should add in the preamble

Code: Select all

\usepackage{graphicx}
and then, in the body of your document, you can use something like

Code: Select all

\scalebox{0.6}{$\square$}
The first argument is the scale factor to be used.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply