1

I am writing a document in article classin TeX. I want the title page to look like the one here , with all the content aligned to the left, a horizontal line starting just after the word ABSTRACT and another horizontal line underneath the abstract. I initially played with hline and hlinefill but it threw up errors when I used them either inside or outside abstract environment. What I have now produces the standard title page. How can I produce a title page like the one above? Here's the code I used:

\documentclass{article}
\usepackage{blindtext}
\title{Something Goes Here}
\author{Dr X\\ University of Dr X}
\begin{document}
\maketitle
\begin{abstract}
\blindtext
\end{abstract}
\hlinefill

\end{document}
2
  • You don't HAVE to use \maketitle. You could just format the page as a page. It helps to look at the code in article.cls (base folder). Commented Dec 3, 2019 at 15:12
  • I see. But I have always been using \maketitle and want to stick with it.
    – V Kahn
    Commented Dec 6, 2019 at 14:02

1 Answer 1

1

Tis is easy with the abstract package:

\documentclass{article}
\usepackage{blindtext}
\usepackage[style]{abstract}

\renewcommand{\abstitlestyle}[1]{\raggedright\MakeUppercase#1\enspace\hrulefill\smallskip}
\setlength{\absleftindent}{0pt}
\setlength{\absrightindent}{0pt}
\setlength{\absparindent}{0pt}
\title{Something Goes Here}
\author{Dr Nutty\\ University of Nonsense}

\begin{document}

\maketitle
\begin{abstract}
\noindent\blindtext
\end{abstract}
\hrule

\end{document} 

enter image description here

2
  • thanks a lot. I can now write the abstract the way I wanted. I still though could not figure out a way to left align the author name, affiliation and date. I played with flushleft and \raggedright but it didn't do anything. Any chance you know how to do it?
    – V Kahn
    Commented Dec 3, 2019 at 14:08
  • I managed to align to the left the article title and author name. Thank you to everybody who contributed their time. I have one more question -- how can I put the date at the top above the article title, as in the paper I mentioned in my question?
    – V Kahn
    Commented Dec 3, 2019 at 17:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .