添加带有底部边框的 pdf(jpeg 或 png)格式的签名

添加带有底部边框的 pdf(jpeg 或 png)格式的签名

我目前有这样的布局:

\documentclass[11pt, a4paper]{article}
\usepackage{graphicx}
\usepackage{multicol}
\begin{document}

\begin{multicols}{2}
\textbf{Position} \par \medskip
\includegraphics[width=5cm,height=1.5cm]{Example_Signature.png}\\
\makebox[2.0in]{\hrulefill}\\

\qquad\qquad\quad \textbf{Signature}
\columnbreak \\
\textbf{Position} \par \medskip
\includegraphics[width=5cm,height=1.5cm]{Example_Signature.png} \\
\makebox[2.0in]{\hrulefill}\\

\qquad\qquad\quad \textbf{Signature}
\end{multicols}
\end{document}

看起来像这样:

签名字段示例

我想让它看起来更好,对齐所有字段,并缩小字段之间的间距。类似于以下内容:

签名栏的更好例子

答案1

那么三列表格怎么样?

\documentclass[11pt, a4paper]{article}
\usepackage[demo]{graphicx}
\usepackage{tabularx}

\usepackage{array}

\newcolumntype{Z}{>{\raggedright}X}

\begin{document}


\begin{tabularx}{\linewidth}{*{3}{@{}Z@{}}}
  \textbf{Position} & & \textbf{Position} \tabularnewline
  \includegraphics[width=0.33\textwidth,height=1.5cm]{Example_Signature.png} & & \includegraphics[width=0.33\textwidth,height=1.5cm]{Example_Signature.png} \tabularnewline
  \cline{1-1} \cline{3-3}
  & & \tabularnewline
  \multicolumn{1}{r}{\bfseries Signature} & & \multicolumn{1}{r}{\bfseries Signature} \tabularnewline
\end{tabularx}

\end{document}

在此处输入图片描述

更新一些更好的间距:

根据实际需要更改签名图像的相关长度和缩放比例。 之间的空间由 控制\spacebetween

\documentclass[11pt, a4paper]{article}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tabularx}

\newlength{\spacebetween}
\setlength{\spacebetween}{2cm}

\newlength{\signaturerulewidth}
\setlength{\signaturerulewidth}{1.5pt}
\newlength{\fullwidth}
\setlength{\fullwidth}{0.7\linewidth}


\begin{document}

{%
\centering
\begin{tabularx}{\fullwidth}{@{}X@{}p{\spacebetween}@{}X@{}}
  \textbf{Position} & & \textbf{Position} \tabularnewline
  \includegraphics[width=0.33\fullwidth,height=1.5cm]{ludwig-van-beethoven_330.jpg} & & \includegraphics[width=0.33\fullwidth,height=1.5cm]{pablo-picasso_330.jpg} \tabularnewline
  \cmidrule[\signaturerulewidth]{1-1} \cmidrule[\signaturerulewidth]{3-3}%[1pt]
  %& & \tabularnewline
  \multicolumn{1}{c}{\bfseries Signature} & & \multicolumn{1}{c}{\bfseries Signature} \tabularnewline
\end{tabularx}

}

\vskip2\baselineskip
{%
\setlength{\spacebetween}{1cm}
\centering
\begin{tabularx}{\fullwidth}{@{}X@{}p{\spacebetween}@{}X@{}}
  \textbf{Position} & & \textbf{Position} \tabularnewline
  \includegraphics[width=0.33\fullwidth,height=1.5cm]{ludwig-van-beethoven_330.jpg} & & \includegraphics[width=0.33\fullwidth,height=1.5cm]{pablo-picasso_330.jpg} \tabularnewline
  \cmidrule[\signaturerulewidth]{1-1} \cmidrule[\signaturerulewidth]{3-3}
 %& & \tabularnewline
  \multicolumn{1}{c}{\bfseries Signature} & & \multicolumn{1}{c}{\bfseries Signature} \tabularnewline
\end{tabularx}

}


\end{document}

在此处输入图片描述

相关内容