水平线和签名

水平线和签名

我又来这里了,有一个新问题需要解决。我喜欢这个求职信模板,但想对其进行如下自定义:

  1. 想要在电子邮件地址下方(日期上方)有一条粗水平线。我希望线的宽度与文本宽度相同(而不是跨越整个页面)。

  2. 需要在“真诚的”下面和我的名字上面添加签名图像。

  3. 如果需要,可以在左上方添加一个“Logo”,即地址在右侧,Logo在左侧。非常感谢任何解决方案。

以下是 MWE:

\documentclass[11pt,a4paper]{letter} 
\topmargin = -1.5in    % Make letterhead start about 1 inch from top of page 
%\textheight = 9.8in  % text height can be bigger for a longer letter
\textheight = 10.0in  % text height can be bigger for a longer letter
%\oddsidemargin = 0pt % leftmargin is 1 inch
\oddsidemargin = -0.5in % leftmargin is 1 inch
%\textwidth = 6.8in   % textwidth of 6.5in leaves 1 inch for right margin
\textwidth = 7.3in   % textwidth of 6.5in leaves 1 inch for right margin
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{graphicx}
\signature{Khurshid Alam}
%\let\raggedleft\raggedright                % needed to get date flush left
\address{Khurshid Alam, Ph.D. \\
Department of Mathematics \& Statistics \\
University of Windsor \\
Windsor, ON, N9B 3P4 Canada \\
Phone: 1.226.961.1441 (Cell) \\
Email: [email protected]} 
\vfill % forces letterhead to top of page
%\medskip\hrule height 1pt
\longindentation = 0pt

\begin{document}

\begin{letter}
{Chair, Department of Statistics  \\
University of  \\
Canada \\ 
\vspace{.2in}
Subject: Application for a ... Position} 

\opening{Dear Sir,}
I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 


\closing{Sincerely}

\encl{(i) My CV, (ii) Teaching Philosophy Statement, and (iii) Teaching Evaluation Summary}

\end{letter}

\end{document}

答案1

这是您的原始设置:

在此处输入图片描述

这是一个修订版本,它没有使用letter类,而是article使用。它提供了更多的自由来定位和操作事物:

在此处输入图片描述

\documentclass[11pt]{article}

\usepackage[paper = a4paper,margin = 15mm]{geometry}

\usepackage{hyperref,graphicx}
\usepackage{lipsum}

\makeatletter
% A thick rule, 4 times the width of a regular rule
\newcommand{\thickhline}{\noalign {\ifnum 0=`}\fi \hrule \@height 4\arrayrulewidth \futurelet \reserved@a \@xhline}
\makeatother

\setlength{\parindent}{0pt}
\setlength{\parskip}{.5\baselineskip plus 2pt minus 1pt}

\pagestyle{empty}

\begin{document}

\mbox{}%
\raisebox{\dimexpr-\height+\baselineskip}[0pt][0pt]{%
  \includegraphics[height=7\baselineskip]{example-image}% Your logo
}%
\hfill
\begin{tabular}[t]{@{} l @{}}
  Khurshid Alam, Ph.D. \\
  Department of Mathematics \& Statistics \\
  University of Windsor \\
  Windsor, ON, N9B 3P4 Canada \\
  Phone: 1.226.961.1441 (Cell) \\
  Email: [email protected] \\[.5\normalbaselineskip]
  \thickhline \\[-.5\normalbaselineskip]
  \today
\end{tabular}

\vspace{1.5\baselineskip}

\begin{tabular}{@{} l @{}}
  Chair, Department of Statistics  \\
  University of \\
  Canada
\end{tabular}

\bigskip

Subject: Application for a \ldots Position

\vspace{1.5\baselineskip}

Dear Sir,

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 

I am responding to the advertisement for the Assistant Professor position in the Mathematics \& Statistics Department at , which appeared on academickeys.com. 


Sincerely

\bigskip

\includegraphics[height=4\baselineskip,width=.3\linewidth]{example-image}% Your signature

Khurshid Alam

\bigskip

encl: (i) My CV, (ii) Teaching Philosophy Statement, and (iii) Teaching Evaluation Summary

\end{document}

从上下文应该可以清楚地知道什么放在哪里以及如何改变它。

相关内容