如何在 plainnat 中的参考编号后添加一个点

如何在 plainnat 中的参考编号后添加一个点

事实上,我得到了类似这样的信息: 在此处输入图片描述

但是我需要在参考编号后面加一个点和一些空格,如下所示:

在此处输入图片描述

你能帮助我吗?

梅威瑟:

主要.tex:

\documentclass[12pt]{article}
\usepackage[english,turkish]{babel}

\usepackage[numbers]{natbib}
\renewcommand{\bibsection}{\large \textbf{REFERENCES}}
\makeatletter
    \renewcommand{\@biblabel}{\hfill}
\makeatother



\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras in justo orci. 
Phasellus pharetra elit sit amet lobortis pretium. Donec a tortor est. In 
pretium imperdiet erat ut egestas. Vestibulum pellentesque erat augue, quis 
facilisis lorem lobortis ac. Suspendisse a magna lacinia, pretium nisl sit 
amet, blandit ligula. Aliquam erat volutpat. Nullam at porta ex, non 
condimentum lectus \citep{esry2007}.

\bibliographystyle{plainnat}
\bibliography{refs.bib}%

\end{document}

参考文献:

@article{esry2007,
    title = {General Theory of Carrier-Envelope Phase Effects},
    author = {Roudnev, V. and Esry, B. D.},
    journal = PRL,
    volume = {99},
    number = {22},
    pages = {220406},
    year = {2007},
    publisher = {APS}
}

我还从 CTAN 复制了 plainnat.bst 文件。如果您需要的话,我可以提供参考。

答案1

正确地重新定义就足够了\@biblabel。您可能希望更改3em为您认为合适的任何其他长度。

\documentclass[12pt]{article}
\usepackage[english,turkish]{babel}

\usepackage[numbers]{natbib}
\renewcommand{\bibsection}{\begin{center}\large \textbf{REFERENCES}\end{center}}
\makeatletter
\renewcommand{\@biblabel}[1]{\makebox[3em][l]{#1.}}
\makeatother


\begin{document}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras in justo orci. 
Phasellus pharetra elit sit amet lobortis pretium. Donec a tortor est. In 
pretium imperdiet erat ut egestas. Vestibulum pellentesque erat augue, quis 
facilisis lorem lobortis ac. Suspendisse a magna lacinia, pretium nisl sit 
amet, blandit ligula. Aliquam erat volutpat. Nullam at porta ex, non 
condimentum lectus \citep{esry2007}.

\bibliographystyle{plainnat}
\bibliography{refs.bib}

\end{document}

在此处输入图片描述

相关内容