我需要删除论文参考文献中期刊名称后面的点。我正在使用vancouver
样式文件。
我的最小工作示例(MWE)如下所示:
\documentclass[10pt,a4paper, titlepage]{scrartcl}
\usepackage[comma, super]{natbib}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{baum2014,
Author = {Baum, KT and Desai, A and Field, J and Miller, LE and Rausch, J and Beebe, DW},
Journal = {J Child Psychol Psychiatry},
Number = {2},
Pages = {180--190},
Title = {Sleep restriction worsens mood and emotion regulation in adolescents},
Year = {2014}}
\end{filecontents*}
\begin{document}
And here, I am citing the article \cite{baum2014}.
\bibliographystyle{vancouver}
\makeatletter
\renewcommand\@biblabel[1]{#1.}
\makeatother
\bibliography{my_bibliography}
\end{document}
我的输出如下:
我想去掉期刊名称后面的点。
我认为我可以通过修改vancouver.bst
文件来实现这一点。但是,我对样式文件代码不太熟悉。任何帮助都将不胜感激。
答案1
我也遇到了同样的问题,但找不到上述评论中提到的修改,因此我发布了经过反复试验后最终得出的解决方案。
vancouver.bst
这是修改后的原始代码块:
% urlbst
FUNCTION {output.nonnull.original}
{ 's :=
output.state mid.sentence =
{ ". " * write$ }
{ output.state after.block =
{ add.period$ write$
newline$
"\newblock " write$
}
{ output.state before.all =
'write$
{ add.period$ " " * write$ }
if$
}
if$
mid.sentence 'output.state :=
}
if$
s
}
我将第二个替换add.period$
为add.blank
,然后将add.blank
up 的声明从原来的 251-253 行移到此函数之前。最终版本如下所示:
FUNCTION {add.blank} % moved up from below
{ " " * before.all 'output.state :=
}
% urlbst
FUNCTION {output.nonnull.original}
{ 's :=
output.state mid.sentence =
{ ". " * write$ }
{ output.state after.block =
{ add.period$ write$
newline$
"\newblock " write$
}
{ output.state before.all =
'write$
{ add.blank " " * write$ } % replaced add.period$
if$
}
if$
mid.sentence 'output.state :=
}
if$
s
}