Is there any package to insert an image (like a watermark) giving the X and Y coordinates, although then goes over the text?

  • 1
    I think there is a package for watermarks, but there are also ways of placing things at (x,y) on page with other text: tex.stackexchange.com/questions/169808/… – Steven B. Segletes Oct 20 '14 at 11:52
  • tex.stackexchange.com/questions/73243/… and others... search the site for "watermark" – Steven B. Segletes Oct 20 '14 at 12:12
  • eso-pic with absolute positioning? You can place a grid over the page when working to help with coordinate placement (and then obviously get rid of the grid when done). I think this is a two file solution though. (I've used it to fill in PDF forms which are not created as fillable.) – cfr Oct 21 '14 at 10:10
  • xwatermark might be helpful (allows multiple watermarks over or under text. xpos and ypos specify coordinates and you can customise things in various ways. [Untested - I've never used this package and you've not supplied an MWE so it is hard to say more.] If you are filling 'holes' with graphics, though, I wonder if this is really the best approach. A minimal working example (MWE) would make it a lot easier to help! – cfr Oct 21 '14 at 10:16

I used the background package to watermark versions of a document with \today. It uses tikz nodes which allows a lot of customizations but has useful default values so you don't have to care:





enter image description here

  • This is a good idea, but I want to put the image with X,Y coordinates. It's possible? My problem is this: in some cases I have a blank speace to fill with image. For this I think that the coordinates are the solution... – ginosap Oct 20 '14 at 14:00
  • I create an image : imgur.com/dRgOdJx. Is possible insert an images on the square red boxes with coordinates? – ginosap Oct 21 '14 at 8:48
  • While it is possible to specify the position in absolute values from the top left corner position={x,y},scale=1 (use negative y values), the package is more useful for one background element per page. At least I couldn't find an option to add multiple background elements. – Harald Oct 21 '14 at 9:23
  • I have posted another answer with the multiple images requirement in mind. As an alternative approach, I thought it justifies the formulation of an additional answer instead of enhancing this one. – Harald Oct 21 '14 at 9:57

A simplified version from Peter Grill's answer to the question already linked by Steven B. Segletes, combined with the mechanisms of the background package (using the everypage hooks to draw under the text) could solve your need for (1.) absolute positioning of (2.) multiple images as (3.) watermarks.

Code and example:



    % #1 = x (from south west corner of page
    % #2 = y
    % #3 = content
        \begin{tikzpicture}[remember picture,overlay]
            \draw (current page.south west) ++(#1,#2) node {#3};%

\AbsolutePosition{5.0cm}{6.0cm}{\includegraphics[scale=1]{cc.png} (5,6)}
\AbsolutePosition{10.0cm}{12.0cm}{\includegraphics[scale=2]{cc.png} (10,12)}


  • Very good! Here it is! And... If I have two pages in document? With coordinates, can I put different images on different pages? – ginosap Oct 21 '14 at 13:04
  • The image will be on the same page as the surrounding text. – Harald Oct 21 '14 at 13:11
  • You're right, maybe pretend too. I'm using the songs latex package that creates a layout with double column and double page. Anyway I just so. Thank you. – ginosap Oct 21 '14 at 14:33

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.