1

How can I make the text in my letter just slightly overlay the top and bottom of a centered, margin-to-margin image within my document. The image is faded at the top and bottom so that the image is just visible---you know, a gradient fade. Anyway, I thought it would be nice to have my text blend right into the image with the text overlaying this faded part just slightly---whatever the most aesthetic text-to-image overlay ratio happens to be. Anyway, thank you for your help.

  • I think I'm looking for a function that just automatically understands that the text above and below should just slightly overlay the faded parts of the image. – Mabrixly Apr 17 '14 at 23:58
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. In particular, you should post a minimal working example (MWE) that illustrates your question. It will be much easier for us to reproduce your situation and suggest a way to achieve the desired effect when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – cfr Apr 18 '14 at 0:02
  • I don't have clue how to fade an image, but overlaid text is a snap. See, for example, tex.stackexchange.com/questions/171483/… – Steven B. Segletes Apr 18 '14 at 2:16
  • May be you are talking about watermark. This can be done in several ways - background, xwatermark.... – user11232 Apr 18 '14 at 4:00
1

Assuming you have an image with suitable fading to transparency, then you could insert it with negative spacing between the text and the image to create the overlaying effect:

\documentclass{article}

\usepackage{graphicx}
\usepackage{lipsum}

\setlength{\intextsep}{-20pt plus 2pt minus 2pt}


\begin{document}

\lipsum[2]

\begin{figure}[htbp]
\includegraphics[width=\textwidth]{untitled}
\end{figure}
\lipsum[2]

\end{document}

enter image description here

Image used in this example: enter image description here

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.