删除带缩进的参考书目编号

删除带缩进的参考书目编号

我正在使用创建手册书目

\documentclass[12pt,a4paper,twosided]{report} 

这篇文章对我来说很好替换或删除书目编号

\makeatletter
\renewcommand\@biblabel[1]{}
\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{}%
           {\leftmargin0pt
            \@openbib@code
            \usecounter{enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother

只是现在我希望每个条目在第一行后没有悬挂缩进。

我使用了以下手册书目

\begin{thebibliography}{100}

\bibitem{Aadnoy1988} Aadnoy, B. S. (1988). Modeling of the Stability of Highly Inclined Boreholes in Anisotropic Rock Formations (includes associated papers 19213 and 19886 ). \textit{SPE Drilling Engineering}, 3(03), 259–268.

\bibitem{Aadnoy2003} Aadnoy, B. S., & Ong, S. (2003). Introduction to special issue on Borehole Stability. Journal of Petroleum Science and Engineering, 38(3–4), 79–82.

\end{thebibliography}

我希望看到如下面的快照所示。 在此处输入图片描述

答案1

尝试这个:

\documentclass[12pt,a4paper,twosided]{report} 

\makeatletter
\renewcommand\@biblabel[1]{}
\renewenvironment{thebibliography}[1]
     {\section*{\bibname}% report class uses \bibname instead of \refname
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{}%
           {\settowidth\leftmargin{#1}%
            \itemindent=-\leftmargin
            \@openbib@code
            \usecounter{enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother

\begin{document}

\begin{thebibliography}{100}

\bibitem{Aadnoy1988} Aadnoy, B. S. (1988). Modeling of the Stability of Highly Inclined Boreholes in Anisotropic Rock Formations (includes associated papers 19213 and 19886 ). \textit{SPE Drilling Engineering}, 3(03), 259–268.

\bibitem{Aadnoy2003} Aadnoy, B. S., \& Ong, S. (2003). Introduction to special issue on Borehole Stability. Journal of Petroleum Science and Engineering, 38(3–4), 79–82.

\end{thebibliography}
\end{document}

在此处输入图片描述

相关内容