![参照/BibTex スタイルでカンマとドットを効果的に使用する方法](https://rvso.com/image/281479/%E5%8F%82%E7%85%A7%2FBibTex%20%E3%82%B9%E3%82%BF%E3%82%A4%E3%83%AB%E3%81%A7%E3%82%AB%E3%83%B3%E3%83%9E%E3%81%A8%E3%83%89%E3%83%83%E3%83%88%E3%82%92%E5%8A%B9%E6%9E%9C%E7%9A%84%E3%81%AB%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95.png)
記事の参照スタイルを次のように使用したいと思います。
著者、ジャーナル 音量pp.23-34(年)。Webリンク
例えば:
AN オハイオ、BR ジェラッド、M. フォーサイス、ナット。マター。 24pp. 345-456 (2002). CrossRef
カンマとドットを効果的に使用できるように、bibtex 形式スタイル (.bst) への変更を手伝ってください。
FUNCTION {output.nonnull}
{ 's :=
output.state mid.sentence =
{ " " * write$ }
{ output.state after.block =
{ " " * write$
newline$
"\newblock " write$
}
{ output.state before.all =
'write$
{ add.period$ " " * write$ }
if$
}
if$
mid.sentence 'output.state :=
}
if$
s
}
FUNCTION {fin.entry}
{ write$
newline$
}
FUNCTION {format.authors}
{ author empty$
{ "," }
{ author format.names }
if$
}
FUNCTION {format.date}
{ year empty$
'year
{" (" year * ")." * }
if$
}
FUNCTION {format.vol.num.pages}
{ volume field.or.null boldface
number empty$
'skip$
{ "(" number * ")" * *
volume empty$
{ "there's a number but no volume in " cite$ * warning$ }
'skip$
if$
}
if$
pages empty$
'skip$
{ duplicate$ empty$
{ pop$ format.pages }
{ ", pp. " * pages n.dashify * }
if$
}
if$
}
FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
nameptr #1 >
{ namesleft #1 >
{ ", " * t * }
{ numnames #2 >
{ "," * }
'skip$
if$
t "others" =
{ " et~al." * }
{ " and " * t * }
if$
}
if$
}
't
if$
nameptr #1 + 'nameptr :=
namesleft #1 - 'namesleft :=
}
while$
}
FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
new.block
", " * write$
format.title "title" output.check
new.block
crossref missing$
{ journal emphasize "journal" output.check
format.vol.num.pages output
format.date "year" output.check
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
new.block
note output
new.block
howpublished output
fin.entry
}
私は acs.bst を使用し、変更を加えたセクションでは、上記をコピーして貼り付けました。これらのセクションを元の acs.bst ファイルと比較することで、変更をクロスチェックできます。これにより、カンマとドットを完全に制御できるようになりました。