答案1
yshift
使用 tikz,只需使用key更改签名图像的垂直位置即可
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thick](0,0)--(5,0)node[midway,yshift=1.2cm](c){\includegraphics[width=4cm]{example-image-a}};
\node[yshift=-3mm] at (c.south) {\bfseries My Name};
\end{tikzpicture}
\end{document}
答案2
我使用这个代码:
% on preamble
\def\sign{\includegraphics[scale=.8]{fig-here}\\[-4ex]} % set up the value
\def\myname{Euclides}
\def\LocalData{City, \today}
\begin{document}
\begin{flushright}\LocalData\par\bigskip
\begin{minipage}{6cm}\centering
\sign\hrulefill\\\myname
\end{minipage}
\end{flushright}
\end{document}