# Math Help - Putting black boxes over the text..

1. ## Putting black boxes over the text..

Hello!

I need to censur a report of mine.
I need to put black boxes over some parts of the text in my pdf file..

It is pretty easy to do in word, but I have no idea how to do it with latex.

So if anyone has any simple tips or know how to do it, let me know.

Thanks!

2. all I can think of is lots of backspaces (that's \! ) followed by \blacksquare as many times as you need.

3. Originally Posted by danielel
I need to put black boxes over some parts of the text in my pdf file..
The package "color" provides the command colorbox :
Code:
Bonjour, \colorbox{black}{Bonjour !}
gives $\text{Bonjour, \colorbox{black}{Bonjour !}}$. This command does what you want but it might create few problems because, to my knowledge, LaTeX does't break "colorboxes". In other words, if the piece of text you want to hide is wider than the page, LaTeX will create a single "colorbox" wider than the page, it won't break it into several "colorboxes" which could individually fit on a single line.