Text Formatting ⇒ \Box italicises my text
\Box italicises my text
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.
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
Since the symbol is only for math mode, this is the only way.uqan wrote:[…] I'm not sure if this is the best way, so any other suggestions are appreciated.
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10