# Group by author in bibliography

EDIT2: Still no answer?

How to group bibliography by author like in ieeetran. I am talking about something similar to this. I do not want to use ieeetran style on my entire document i just want to use this style of writing multiple bibliography entries of the same author (including horizontal line).

I would be happy to use bibliographystyle plain if possible.

Here is part of my code. I need to have second line of each entry indented and without numbers that is why renewenvironment. However i want to have a dashed line instead of author name if the authors name is repeating.

MWEB:

\documentclass[12pt,a4paper]{article}
\usepackage{enumitem}

\usepackage{filecontents}

\begin{filecontents}{bibl2.bib}
@article{de2017measuring,
title={Measuring expectations of inflation: Effects of survey mode, wording, and opportunities to revise},
author={de Bruin, W{\"a}ndi Bruine and van der Klaauw, Wilbert and van Rooij, Maarten and Teppa, Federica and de Vos, Klaas},
journal={Journal of Economic Psychology},
volume={59},
pages={45--58},
year={2017},
publisher={Elsevier}
}
@article{de2017measuring2,
title={ZZZZZ},
author={de Bruin, W{\"a}ndi Bruine and van der Klaauw, Wilbert and van Rooij, Maarten and Teppa, Federica and de Vos, Klaas},
journal={Journal of Economic Psychology},
volume={59},
pages={45--58},
year={2017},
publisher={Elsevier}
}
\end{filecontents}

\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\begin{enumerate}[label={},itemindent=*,leftmargin=4em]
\@openbib@code
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000
\sfcode\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty thebibliography' environment}}%
\end{enumerate}}
\makeatother
\begin{document}

%\singlespacing
\nocite{*}

\begingroup
\renewcommand{\section}[2]{}%

\bibliographystyle{plain}
\bibliography{bibl2}

\endgroup

\end{document}


I want behavior of this type:

line instead of author name (e.g. Paul Hubert) when two (or more) article written by the same author.

as for citations i am using footnotes for reference

• Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass and ending with \end{document}. – Bobyandbob May 25 '17 at 10:08
• I have added part of my code. – Mrowkacala May 25 '17 at 10:11
• I have added necessary details – Mrowkacala May 25 '17 at 10:36
• Corrected i guess – Mrowkacala May 25 '17 at 11:39
• @samcarter added to the main question – Mrowkacala May 25 '17 at 17:53