更改 bibitem 样式

更改 bibitem 样式

我使用标准参考书目选项,它为我提供了以下结果,即枚举列表:

 8  Atkin A.O. Elliptic curves and primality proving // Mathematics of
    Computation, 1993, Vol. 61, P. 29–68.
 9  Menezes A. Reducing elliptic curve logarithms to logarithms in a finite field
    // IEEE Transactions on Information Theory, 1993, Vol. 39, P. 1639–1646.
10  Menezes A., Elliptic Curve Public Key Cryptosystems. Kluwer Academic
    Publishers, Boston, 1993.

我需要稍微不同的参考书目样式:带有第一行缩进的文本段落,如下所示:

    8 Atkin A.O. Elliptic curves and primality proving // Mathematics of
Computation, 1993, Vol. 61, P. 29–68.
    9 Menezes A. Reducing elliptic curve logarithms to logarithms in a finite field
// IEEE Transactions on Information Theory, 1993, Vol. 39, P. 1639–1646.
    10 Menezes A., Elliptic Curve Public Key Cryptosystems. Kluwer Academic
Publishers, Boston, 1993.

如何更改我的自定义类(派生自report)中参考书目列表的样式?

答案1

环境thebibliography是使用列表构建的,因此您可以更改适当的长度。在下面的示例中,我使用\thebibliography中定义的命令的默认定义展示了这种修改report.cls。基本上,根据您的描述,您需要做的是将 设置\leftmargin0pt并将\itemindent设置为正值(我使用了30pt):

\begin{filecontents*}{zzxx.bib}
@book{goossens93,
    author = "Michel Goossens",
    title = "The {LaTeX} Companion",
    year = "1993",
    publisher = "Addison-Wesley",
    address = "Reading, Massachusetts"
}

@article{greenwade93, 
    author = "George D. Greenwade",
    title = "The {C}omprehensive {TeX} {A}rchive {N}etwork ({CTAN})",
    year = "1993",
    journal = "TUGBoat",
    volume = "14",
    number = "3",
    pages = "342--351",
    url=" www.ctan.org"
}

@book{knuth79,
    author = "Donald E. Knuth",
    title = "{TeX} and Metafont, New Directions in Typesetting",
    year = "1979",
    publisher = "American Mathematical Society and Digital Press",
    address = "Stanford"
}
\end{filecontents*}

\documentclass{report}

\makeatletter
\renewenvironment{thebibliography}[1]
     {\chapter*{\bibname}%
      \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin=0pt
            \itemindent=30pt
            \@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

\begin{document} 

\nocite{*}

\bibliographystyle{plain}
\bibliography{zzxx}

\end{document}

在此处输入图片描述

相关内容