I am using the following override of "thebibliography" command:
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\bibname}% <-- this line was changed from \chapter* to \section*
\@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
I am trying to add indentation from a number when wrapping to the next line. So that all lines are indented evenly:
I am trying to achieve this result:
Please tell me what needs to be added for this?


thebibliography. In theory your BibTeX style (or you) should put the longest label there and then the indentation should look good. How do you generate your bibliography? – moewe Dec 18 '21 at 17:37\bibitem{AB_pmpu} example \end{thebibliography}
– chel_random Dec 18 '21 at 17:453left for the labels. Please try, say\begin{thebibliography}{99}if you have less than 100 entries, – Przemysław Scherwentke Dec 18 '21 at 20:18