Как сделать так, чтобы заголовок выглядел так, используя maketitle - PullRequest
0 голосов
/ 27 марта 2019

Output Expected

Я пробовал что-то подобное.Но это не работает.Я хочу поместить объект автора с левой стороны, объект даты с правой стороны и под ними, заголовок должен появиться, а строка должна располагаться ниже заголовка

\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\\
    }

1 Ответ

0 голосов
/ 28 марта 2019

Создание такого типа формата - просто стандартный латекс.

В качестве отправной точки, которую можно значительно улучшить:

\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}

enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...