My question is motivated by the amssymb
package not having a checkmark in a box symbol.Fortunately, I have found in Creating Boxed Check Mark a way to create a checkmark in a box.
However, how to make it compatible with a box with no checkmark? Consider this example:
\documentclass{article}\usepackage{amssymb}\begin{document}\noindent\makebox[0pt][l]{$\square$}\raisebox{0.15ex}{\hspace{0.1em}$\checkmark$} A\\\makebox[0pt][l]{$\square$}{\hspace{0.5em}} B\\\end{document}
The output is:
I am trying to manipulate the parameter in \hspace
to bring "B" aligned with "A" lacking a precise solution. Can you help?