In this solution based on Tikz, you have a new command \myabstract
that takes a single mandatory argument which is the abstract content. The title Abstract
is automatic, in the sense that if you change language in babel, it will change by itself, and the indentation of the content will change accordingly. Try commenting out the line about babel to see what I mean.
Of course, it can be changed manually with \renewcommand\abstractname{RandomTitle}
The optional argument of the abstract is the author's name.
Output
Code
\documentclass[a4paper, twocolumn]{article}
\usepackage[margin=2cm]{geometry}
\usepackage{tikz}
\usepackage{calc}
\usepackage{enumitem}
\usepackage{lipsum,adjustbox}
\usepackage{fancyhdr}
%\usepackage[spanish]{babel} % try Swedish!
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\Huge\bfseries Title of the article}
%\fancyhead[LO,RE]{\slshape\nouppercase{\rightmark}} %these are useless without twoside option
%\fancyfoot[CE,CO]{}
%\fancyfoot[LE,RO]{}
\setlength{\headheight}{30pt}
\newcommand\myabstract[2][First author]{%
\noindent
\twocolumn[{%
\begin{tikzpicture}
\node[fill=black!5, inner sep=3mm, outer sep=0, minimum width=\textwidth, inner ysep=2mm] (a) {%
\begin{varwidth}{\textwidth-6.2mm}
\begin{description}[labelsep=0pt, labelwidth=\widthof{\bfseries \abstractname:~}, leftmargin=!] \item[\abstractname:]#2\end{description}\end{varwidth}};
\draw (a.north west) -- (a.north east);
\draw (a.south west) -- (a.south east);
\node[font=\bfseries, anchor=south west, outer ysep=5mm, outer xsep=0, inner xsep=0] at (a.north west) {#1};
\end{tikzpicture}%
\vspace*{1cm}
}]%
}
\begin{document}
\myabstract{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eu convallis urna. Suspendisse potenti. Ut posuere euismod leo, eu posuere arcu vulputate quis. Praesent dictum tempus tortor, elementum gravida nisl eleifend gravida. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla iaculis arcu at risus placerat lobortis. Vestibulum ligula nulla, suscipit congue urna in, congue pellentesque quam. Proin laoreet, orci eget pharetra aliquam, risus felis lobortis justo, in fringilla diam nisi ac enim.}
\section{Introduction}
\lipsum[2-3]
\end{document}