The apsr.bst
license requires
if you do make changes, you name it something other than btxbst.doc, plain.bst, unsrt.bst, alpha.bst, abbrv.bst, agsm.bst, dcu.bst or kluwer.bst, jmr.bst, apsr.bst.
This restriction helps ensure that all standard styles are identical.
So, if you intend to change it, you should rename the file to something else. Following your suggestion, let's call it apsrTUT.bst
.
I copied the original file and renamed it with (in a unix-like environment):
cp `kpsewhich apsr.bst` apsrTUT.bst
(kpsewhich
finds the file in the texlive tree so that I don't have to look for it; it actually resides in $TEXDIR/texmf-dist/bibtex/bst/harvard/apsr.bst
)
Then I applied the change you mentioned; here's the diff
for the original apsr.bst
to the new apsrTUT.bst
:
201c201
< "{ff }{vv~}{ll}{, jj}" author format.rem.names
---
> "{vv~}{ll}{, jj}{, f}" author format.rem.names
We must then pass the new style file to the bibliographystyle
call in our file
\bibliographystyle{apsrTUT}
If you've done this and it still isn't working, make sure to delete the external auxiliary files (.aux
, .bbl
, .blg
, .log
) before compiling the document again.
Here's a MWE (with the packages you mentioned in your comments):
The filecontents
environment used here allows one to ship an external file (here the bibliographic database, \jobname.bib
) within the document. It is used here only to provide a fully compilable example.
\begin{filecontents}{\jobname.bib}
@article{wang2015cyber,
author = {Wang, Lihui and T\"orngren, Martin and Onori, Mauro},
title = {Current status and advancement of cyber-physical systems in manufacturing},
journal = {Journal of Manufacturing Systems},
year = {2015},
publisher = {Elsevier},
}
\end{filecontents}
\documentclass{article}
\usepackage{natbib}
\usepackage{har2nat}
\begin{document}
\cite{wang2015cyber}
\bibliographystyle{apsrTUT}
\bibliography{\jobname.bib}
\end{document}
And the output:
Thanks for the tips everyone.
In the end I think I sussed it. Essentially I had attempted to change the appearance of URL dates in my bibliography, by changing the processor to bibtex8 with the option "urldate=long". Once I realised I didn't need it, I changed the processor back to "Default", and it appeared thus:
However, when I recovered an earlier version of the main lyx file, and ran diff, it highlighted that even though I'd selected to return to the default processor it was still running through bibtex8 with the option I'd chosen. It seems that even though in the menu it was greyed out (and set to "Default"), the actual content of the file hadn't updated to reflect this. Phew.
I wonder if this is a known thing, and my search terms just weren't quite right? Seems as though someone would've come across it before.
Best Answer
Removing the brackets from the item's label in the bibliography
To remove the brackets from the item's label in the bibliography, you just need to redefine
\@biblabel
. It's original definition isSo you can change it with
\renewcommand
to print, instead of[<arg>]
,<arg>.
:Removing the hanging indent in the bibliography
We must redefine
thebibliography
environment, which is a\list
. To make things easy, I checked the definition ofasparaenum
environment, from theparalist
package and reproduced the lenghts in thethebibliography
environment (which we need to redefine). Assuming you're working witharticle
class:Here's a MWE:
And the output: