I have following problem - I want to use \blackbox in my file, which is provided by amssymb package. I use the following packages: babel, [T1]{fontenc}, [latin2]{inputenc}, none of which allows \blackbox. As if I try to add amssymb to list of packages and then compile the file, an error occurs. Can anyone suggest some way to overcome this problem?


There exists a comprehensive list of symbols in LaTeX. Alternatively you can try the Detexify homepage. According to both, there is no symbol called \blackbox.

But there is a symbol called \blacksquare, which might be an alternative here. It is made available by the amssymb package. The following MWE shows how to use that symbol.



\usepackage[T1]{fontenc} % font encoding
\usepackage[utf8]{inputenc} % input encoding
\usepackage[english]{babel} % keyword translation and hyphenation
\usepackage{lmodern} % lmodern looks better than cm-super

%% ==================
Lorem ipsum dolor sit amet.
Some text about a little black $\blacksquare$ square.
    3+4 = \blacksquare

PS: You can change the input encoding back to latin2, but utf8 has only advantages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.