Apropos to my earlier question on bst file editing (and using the same bst file described there), I tried to add a title to the bibliographic output with a period at the end. This apparently worked well but for a pesky comma that is appended after the period following the title. I cannot figure out where this comma is coming from or how to remove it. Perhaps it is a general delimiter added after each field. What would be the simplest way to remove it?
I appended a period to the end of the title by adding ". " * to format.title:
FUNCTION {format.title}
{ title empty$
{ "" }
{ title ". " * "t" change.case$
% title "t" change.case$ % original line
}
if$
}
I then added a title to articles by adding the line format.title "title" output.check to FUNCTION {article}:
FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
crossref missing$
{ format.title "title" output.check % added this line
journal
emphasize
"journal" output.check
add.blank
format.vol.num.pages output
format.date "year" output.check
}
{ format.article.crossref output.nonnull
format.pages output
}
if$
new.sentence
format.note output
fin.entry
}
The MWE is as before, but the output has changed (showing the undesired comma after the title).
\documentclass{article}
\usepackage{scicite}
\begin{document}
According to the theory of special relativity~\cite{einstein1905}, \ldots
\bibliography{a}
\bibliographystyle{Science}
\end{document}
Bib file (a.bib):
@article{einstein1905,
title={Zur elektrodynamik bewegter k{\"o}rper},
author={Einstein, Albert},
journal={Annalen der physik},
volume={322},
number={10},
pages={891--921},
year={1905},
publisher={Wiley Online Library}
}
The full bst file can be accessed here.
The scicite style file can be accessed here.


Science.bstmake me think that it might be cleaner to start from a different style altogether. Themakebstoffers has a way to produce customised bibliography style for you. And there are a lot of other ready-made styles available. – moewe Apr 04 '19 at 15:18*from our previous discussion, but you have thoughtfully pointed out a better approach. I'm hoping that's the last modification I will require. Unfortunately, that style file is what the journal provides; evidently they receive very few latex submissions, and their style file has consequently not been updated to reflect the current bibliographic practices of the journal. – user001 Apr 04 '19 at 15:20