I am creating a single-line bibliography separated by bullets in this way:
\documentclass{scrreprt}
\usepackage{xcolor}
\usepackage[colorlinks=true,citecolor=blue,]{hyperref}
\usepackage{natbib}
\usepackage{lipsum}
\usepackage{paralist}
\usepackage{filecontents}
\begin{filecontents}{bibliography.bib}
@ARTICLE{einstein1,
author = {{Einstein}, A. and {Podolsky}, B. and {Rosen}, N.},
title = "{Can Quantum-Mechanical Description of Physical Reality Be Considered Complete?}",
journal = {Physical Review},
year = 1935,
month = may,
volume = {47},
number = {10},
pages = {777-780},
}
@ARTICLE{einstein2,
author = {{Einstein}, A.},
title = "{{\"U}ber die von der molekularkinetischen Theorie der W{\"a}rme geforderte Bewegung von in ruhenden Fl{\"u}ssigkeiten suspendierten Teilchen}",
journal = {Annalen der Physik},
year = 1905,
month = jan,
volume = {322},
number = {8},
pages = {549-560},
}
\end{filecontents}
% define a bullet that doesn't work the first time around
\makeatletter
\newcommand{\mybullet}{%
\ifnum\value{enumi}=1
\else
$\bullet$
\fi
}
\makeatother
% make a single line bibliography
\renewenvironment{thebibliography}[1]{\let\par\relax%
\section*{\refname}\inparaenum[\mybullet]}{\endinparaenum}
\let\oldbibitem\bibitem
\renewcommand{\bibitem}{\item \oldbibitem}
% DOCUMENT
\begin{document}
\lipsum
Let us cite \citet{einstein1} \citep[but also][]{einstein2}
\lipsum
\bibliography{bibliography}
\bibliographystyle{apalike}
\end{document}
This works as desired and is mainly coming from here. But as stated in that answer, hyperlinks are broken. Is there an easy way to fix it? Apparently this comes from the fact that we have to use a numbered list, but then only use bullets. A fix where the references hyperlink only to the last page or beginning of the bibliography would be enough.