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 the moderncv
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? using everypage
which underlays something on a page at absolute coordinates).
My MWE does not use a transparent image, but that should not pose a complication.
\documentclass[sans]{moderncv}
\usepackage{stackengine,lipsum}
\moderncvstyle{classic}
\firstname{John}
\familyname{Doe}
\usepackage{etoolbox}
\patchcmd{\makeletterclosing}{3em}{4em}{}{}
\def\PageTopMargin{1in}
\def\PageLeftMargin{1in}
\newcommand\atxy[3]{%
\AtBeginShipoutNext{\AtBeginShipoutAddToBoxForeground{%
\smash{\hspace*{\dimexpr-\PageLeftMargin-\hoffset+#1\relax}%
\raisebox{\dimexpr\PageTopMargin+\voffset-#2\relax}{\textcolor{red!80}{#3}}}}}}
\begin{document}
\recipient{Company Org}{Company\\Street\\City}
\date{\today}
\opening{Dear Sir or Madam,}
\name{Andres}{BC}
\closing{\color{red}Atentamente,}
\enclosure[Attached]{curriculum vit\ae{}}
\makelettertitle
\lipsum[1-2]
\makeletterclosing
\atxy{1.64in}{8.1in}{%
\includegraphics[width=\linewidth,height=55pt]{example-image}}
\end{document}
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 the Atentamente
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).
\documentclass[sans]{moderncv}
\usepackage{stackengine,lipsum}
\moderncvstyle{classic}
\firstname{John}
\familyname{Doe}
\usepackage{etoolbox}
\patchcmd{\makeletterclosing}{3em}{4em}{}{}
\begin{document}
\recipient{Company Org}{Company\\Street\\City}
\date{\today}
\opening{Dear Sir or Madam,}
\name{Andres}{BC}
\closing{\def\stackalignment{l}\color{red}\mbox{}\smash{%
\stackunder[20pt]{Atentamente,}%
{\includegraphics[width=1\linewidth,height=25pt]{example-image}}}}
\enclosure[Attached]{curriculum vit\ae{}}
\makelettertitle
\lipsum[1-2]
\makeletterclosing
\end{document}
I suggest setting up a macro that outputs a fixed-width minipage
environment, consisting of a horizontal line and the name, role, and affiliation of one person.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel} % or "brazilian"
\usepackage{helvet} % just for this example
\newcommand\namegroup[1]{%
\begin{minipage}[t]{0.4\textwidth}
\vspace*{1.5cm} % leave some space above the horizontal line
\hrule
\vspace{1mm} % just a bit more whitespace below the line
\centering
\begin{tabular}[t]{c}
#1
\end{tabular}
\end{minipage}}
\begin{document}
\sffamily % just for this example
APROVADA: 30 de abril de 2011.
\begin{center}
\namegroup{Prof. José Carlos Almeida\\(Coorientador)\\(UFV)}
\hspace{1.5cm}
\namegroup{Prof. Mario Dias Silva\\(Coorientador)\\(UFV)}
\namegroup{Prof. Maria Clara Paiva\\(UFV)}
\hspace{1.5cm}
\namegroup{Prof. Marina Gomes\\(UFV)}
\namegroup{Prof. Jo{\~a}o Silva Neto\\(Orientador)\\(UFV)}
\end{center}
\end{document}
Best Answer
In order to control the dots width as a function of the text below it, use the
\widthof
command fromcalc
package. It will exactly calculate the text width, so you may add a little space as~
if you wish.