我有一个具有以下参考书目样式的 .sty 文件:
\renewcommand\refname{\normalsize References \rm}
\setlength\bibindent{.3in}
\renewenvironment{thebibliography}[1]
{\section{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
\list{\@arabic\c@enumiv .}
{\settowidth\labelwidth{.25in}%
\leftmargin\labelwidth
\setlength{\parsep}{0pc}
\setlength{\labelsep}{0.5em}
\setlength{\itemsep}{0.05pc}%{-0.06in}
\setlength{\listparindent}{0in}
\setlength{\itemindent}{0in}
\setlength{\leftmargin}{0.3cm}
\setlength{\rightmargin}{0in}
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m \normalsize}
如何修复它,以便在参考书目中获得“[1]”而不是“1”。
该文件的 MWE 为:
\documentclass[letterpaper,10pt,pdf]{article}
\begin{document}
Testing~\cite{first}
\end{document}
\begin{thebibliography}{1}
\bibitem{first} Author et al., ``My Paper,'' Conference, 2014.
\end{thebibliography}
答案1
标签的外观由 控制\list{\@arabic\c@enumiv .}
;您可以在\list{[\@arabic\c@enumiv]}