我尝试过这样的事情。但这是行不通的。我想将作者对象放在左侧,将日期对象放在右侧并在其下方,标题应该出现,标题下面应该有一行
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{geometry}
\geometry{
a4paper,
total={180mm,266mm},
left=15mm,
top=14mm,
}
\setlength{\parindent}{0em}
\setlength{\parskip}{1.4em}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\Hrule}{\rule{\linewidth}{0.3mm}}
\makeatletter% since there's an at-sign (@) in the command name
\renewcommand{\@maketitle}{%
%\parindent=0pt% don't indent paragraphs in the title block
{\@author \hfill \@date}
\par
\centering
{\Large \bfseries\textsc{\@title}}
\HRule\par%
}
\makeatother% resets the meaning of the at-sign (@)
\title{
Motivation Letter
}
\author{
Application for Master of Science\\
Computer Science\\
The University of X\\
}
\date{
Sourav Chakraborty\\
x@gmail.com\\
}
答案 0 :(得分:0)
创建这种格式只是标准乳胶。
可以大大改善的起点:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{geometry}
\geometry{
a4paper,
total={180mm,266mm},
left=15mm,
top=14mm,
}
\setlength{\parindent}{0em}
\setlength{\parskip}{1.4em}
\begin{document}
~\\[-1cm] % to control vertical position
Application for anything\hfill Paul random\\
School of information\hfill paul.random@gmail.com\\
The university of Nowhere\hfill Appt A...\\
{\centering\textbf{\large Statement of purpose}\\[-0.2cm]} % to have the rule closer
\rule{\textwidth}{1pt} % to control rule width
To Whom It May Concern
Blah blah and so on...
\end{document}