![通过修改 .sty 文件,在参考书目中使用方括号 [1] 代替 1.](https://linux22.com/image/342280/%E9%80%9A%E8%BF%87%E4%BF%AE%E6%94%B9%20.sty%20%E6%96%87%E4%BB%B6%EF%BC%8C%E5%9C%A8%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E4%B8%AD%E4%BD%BF%E7%94%A8%E6%96%B9%E6%8B%AC%E5%8F%B7%20%5B1%5D%20%E4%BB%A3%E6%9B%BF%201..png)
我有一个具有以下参考书目样式的 .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]}