Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    

1 Answer 1

up vote 4 down vote accepted

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.

\documentclass{article}

\usepackage{amssymb}

\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

%% ==================
\begin{document}
Lorem ipsum dolor sit amet.
%\blackbox
Some text about a little black $\blacksquare$ square.
\begin{equation}
    3+4 = \blacksquare
\end{equation}
\end{document}

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

share|improve this answer
    
Thanks man, it did worked. –  rytt Jul 3 '12 at 10:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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