签名行下方带有点和姓名

签名行下方带有点和姓名

在此处输入图片描述

我想在我的 LaTeX 报告中包括一条虚线签名线,并在该线下方写上我的名字。如图所示。有人能帮我提供 LaTeX 代码吗?

答案1

这应该可以帮助你入门。

\documentclass{article}
\newcommand{\sign}[1]{%      
  \begin{tabular}[t]{@{}l@{}}
  \makebox[1.5in]{\dotfill}\\
  \strut#1\strut
  \end{tabular}%
}
\newcommand{\Date}{%
  \begin{tabular}[t]{@{}p{1.5in}@{}}
  \\[-2ex]
  \strut Date: \dotfill\strut
  \end{tabular}%
}


\begin{document}
  \noindent
  \begin{minipage}[t]{0.4\linewidth}
    \raggedright
    \sign{Supervisor}
    \par
    Mr.\,L. L. Silva\par
    Department of Computing and Information Systems, \par
    Faculty of Applied Sciences, \par
    University of Moratuwa
  \end{minipage}%
  \hfill
  \begin{minipage}[t]{0.4\linewidth}
    \sign{Signature of the supervisor}
    \Date
  \end{minipage}


  \vspace{1cm}
  \noindent
  \begin{minipage}[t]{0.4\linewidth}
    \raggedright
    \sign{Head of the Department}
    \par
    Mr.\,M. N. Dias\par
    Department of Computing and Information Systems, \par
    Faculty of Applied Sciences, \par
    University of Moratuwa
  \end{minipage}%
  \hfill
  \begin{minipage}[t]{0.4\linewidth}
    \sign{Signature of Head}
    \Date
  \end{minipage}
\end{document}

在此处输入图片描述

相关内容