I'm new to LaTeX and I would like to put a semi-transparent text box behind some text on a title page, similar to what is found here: https://www.overleaf.com/articles/clustering-the-interstellar-medium/mtthgyyfrdkn#.VbTxrZNVK1E. My title page has an image as the background.

I have tried using their code, but was unsuccessful. I also tried using the package mdframed (such as from one of the answers here: How to put a framed box around text + math environment), but I could not make this show the background partially through it.

Below is a template of what I have done for my title page:




\put(0, 0){%
\includegraphics[width=\paperwidth, height = \paperheight,%



\huge\textcolor{magenta}{\textbf{Some large title}}


\large\textcolor{magenta}{Author Name}


\small\textcolor{magenta}{Image Credit: Some Source}



I would like the text "Some large title" and "Author Name" to have either a magenta or cyan background, with the text either being black, cyan, or magenta (undecided which at this point).

I do not want the text at the bottom right ("Image Credit: Some Source") to have a colored text box behind it.

I may also want to generalize it and have the title and author name separated by more than 0.5cm, in which case I may want to have two different text boxes behind each set of text (not sure how this would turn out yet).

Any suggestions to accomplish this would be greatly appreciated!

1 Answer 1


Combining tcolorbox and background images it's possible to get (perhaps) something the O.P. requests.

I've defined transparent boxes, the degree of transparancy is left over to the O.P.

The image credits are used in a separated box.







  auto outer arc,
  enhanced jigsaw,



  \huge\textbf{The secret and the transparent life of Brazilian Ducks}

\large By Paulo Roberto Massa Cereda

\small Image Credit: OpenClipart

Another page


enter image description here

  • I leave the spacings to the O.P.
    – user31729
    Commented Jul 23, 2015 at 21:41
  • I used a combination of your code and mine, and it worked. Thanks!
    – Canada709
    Commented Jul 24, 2015 at 12:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .