Results 1 to 3 of 3

Math Help - Putting black boxes over the text..

  1. #1
    Newbie
    Joined
    Feb 2009
    Posts
    9

    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!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member Matt Westwood's Avatar
    Joined
    Jul 2008
    From
    Reading, UK
    Posts
    807
    Thanks
    27
    all I can think of is lots of backspaces (that's \! ) followed by \blacksquare as many times as you need.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802
    Quote Originally Posted by danielel View Post
    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.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Probabilty, Putting balls in boxes
    Posted in the Statistics Forum
    Replies: 3
    Last Post: February 4th 2009, 05:49 PM
  2. Need Help Putting Expression into LATEX
    Posted in the LaTeX Help Forum
    Replies: 0
    Last Post: August 17th 2008, 12:01 PM
  3. Putting in Algebraic terms?
    Posted in the Algebra Forum
    Replies: 1
    Last Post: February 1st 2008, 03:12 AM
  4. need help putting into words
    Posted in the Algebra Forum
    Replies: 3
    Last Post: January 8th 2007, 10:11 AM
  5. putting it another way...
    Posted in the Math Topics Forum
    Replies: 2
    Last Post: May 11th 2006, 03:34 AM

Search Tags


/mathhelpforum @mathhelpforum