Text Formatting\Box italicises my text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
uqan
Posts: 4
Joined: Mon Feb 28, 2011 5:23 am

\Box italicises my text

Post by uqan »

Hi all,

I want to use \Box (from the latexsym package) as it is just the right size for a checkbox. Unfortunately if I write "\Box tick me" the "tick me" appears in italics.

As best as I can tell, this is because \Box is activating math mode. I can't however find how to disable math mode so that \Box becomes 'self contained' and doesn't affect any other text around it.

Does anyone know how to do this? Thanks!

EDIT: Of course as soon as I post I realise that enclosing the \Box in math mode does the trick ("$\Box$"). I'm not sure if this is the best way, so any other suggestions are appreciated.

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

\Box italicises my text

Post by localghost »

uqan wrote:[…] I'm not sure if this is the best way, so any other suggestions are appreciated.
Since the symbol is only for math mode, this is the only way.


Best regards and welcome to the board
Thorsten
Post Reply