Skip to content

Instantly share code, notes, and snippets.

@vsimko
Last active August 25, 2017 12:38
Show Gist options
  • Select an option

  • Save vsimko/28ce9f80d065b83e8a9df0117ec9fd38 to your computer and use it in GitHub Desktop.

Select an option

Save vsimko/28ce9f80d065b83e8a9df0117ec9fd38 to your computer and use it in GitHub Desktop.
\makeatletter
\renewenvironment{thebibliography}[1]{
\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\list{\@biblabel{\@arabic\c@enumiv}}{
\leftmargin0pt
\@openbib@code
\usecounter{enumiv}
}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m
% We redefine the lenghts here
\setlength{\labelwidth}{0pt}
\setlength{\labelsep}{1em}
\setlength{\leftmargin}{0pt}
\parsep\parskip
\setlength{\itemsep}{0pt}
\setlength{\topsep}{0pt}
\partopsep\parskip
\itemindent\labelwidth
\advance\itemindent\labelsep
}
\makeatother
...
\bibliographystyle{plain}
@vsimko

vsimko commented Aug 25, 2017

Copy link
Copy Markdown
Author

This renders bibliography like this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment