\ProvidesPackage{di/bibliography} \RequirePackage{xparse} % Modify the Bibliography title to be called References \renewcommand\bibname{References} % Make sure that bib labels are left aligned \makeatletter \renewcommand{\@biblabel}[1]{[#1]\hfill} \makeatother \makeatletter \renewenvironment{thebibliography}[1] {\bibname% <-- this line was changed from \chapter*{\bibname} to \bibname \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}% \list{\@biblabel{\@arabic\c@enumiv}}% {\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \usecounter{enumiv}% \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% \endlist} \makeatother % The width of the first argument in \dibibrow \newlength{\bibrowwidth} \setlength{\bibrowwidth}{3.5cm} % define command pdbibrow \newcommand{\dibibrow}[2] {% '-\labelwidth-5pt' is done to prevent 'overfull hbox' \begin{tabularx}{\textwidth-\labelwidth-5pt}{lX} \makebox[\bibrowwidth][l]{#1} & #2\\ \end{tabularx} }