When trying to get the signature (transparent PNG) properly placed using the following code:
\name{Andrés}{BC}
\closing{\color{red}Atentamente,\\ \vspace{-10pt}\parbox{120pt}%
{\includegraphics[width=1\linewidth]{transpSign.PNG}}\vspace{-45pt}}
in the head and \makeletterclosing
in the document, I get the following z order in the output PDF (the signature here is printed over the "Atentamente," but under the "Andrés…". I would like it to be over every typed text):
As it seems I get the z order given by the code order, is there any way to force the desired z order but using \name
, \closing
and \makeletterclosing
? The use of these commands doesn't allow fixing it by writing things in the desired z order plus some negative space to position the signature, or something like the solution proposed here.
Best Answer
REVISED ANSWER
Upon comment from the OP, it became more clear that the OP desired to have a transparent signature image overlay the page text. The problem with my original solution was that the image was laid down prior to the name, and thus underlaid the name.
Attempting to make the signature a
\stackon
overlay to the name also did not work, because the name shows up not only in the letter salutation but also in the upper right of themoderncv
document page. Thus, the signature overlay also showed up in two places on the page.Therefore, the solution here was to use my approach of How can I make a perfect page grid that fits my page for measuring purposes in TikZ?, using
atbegshi
to overlay something on a page at absolute coordinates (unlike my similar answer at What are the ways to position things absolutely on the page? usingeverypage
which underlays something on a page at absolute coordinates).My MWE does not use a transparent image, but that should not pose a complication.
ORIGINAL SOLUTION
It is not exactly clear how you would like things to appear, but here I use
\stackunder
to place the graphical image (signature?) under theAtentamente
label. One can play with the optional argument to\stackunder
to specify the gap of the underset, depending on the height of your signature (which I manually specified as 25pt).