Question still unanswered
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.
\documentclass
and ending with\end{document}
. – Bobyandbob May 25 '17 at 10:08