TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to define text boxes with modifiable with and height which use a background image which should scale when you modify the width or height of the box. More complicated, it should be allowed in some way, that the background image has some elements which should scale and other which are not allowed to scale. For example consider something like this:

In that cases the pins for example should not scale, but the slip of paper should do.

share|improve this question
I would use TikZ for this. Define an own environment which places its content in a \node and draw the elements relative to its coordinates. See How to make a textbox with this TikZ code ? for a code example. – Martin Scharrer Jul 13 '11 at 8:52
This question has the same idea as in Superimposing graphics – xport Jul 13 '11 at 17:29

Run it with xelatex. With the optional argument [showgrid] you can see a grid for better placing the objects.

\setmainfont{Viner Hand ITC}

\begin{pspicture}%[showgrid]% only for showing the grid
\rput[l]{-5}(1.8,2.5){\small Birthday!}


enter image description here

share|improve this answer
Thanks. Why do I need xelatex? Is is possible to do this in latex (pdflatex), too? – student Oct 19 '11 at 13:45

Your Answer


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.