我注意到生成的参考列表中存在奇怪的行为。
所含参考书目如下:
\bibliographystyle{apalike}
\bibliography{path/to/bib}
没有包含任何奇怪的包(但也许我的模板包含?)。我绝对没有使用 natbib(grep -r natbib
在项目文件夹中没有返回任何内容)。我使用 bibtex 构建参考书目。
。围兜:
@inproceedings{Akrour,
author = {Akrour, Riad and Tateo, Davide and Peters, Jan},
booktitle = {1st Workshop on Deep Continuous-Discrete Machine Learning},
organization = {TU Darmstadt},
title = {{Towards Reinforcement Learning of Human Readable Policies}},
year = {2019}
}
@inproceedings{Akrour2019,
address = {Long Beach, California, USA},
author = {Akrour, Riad and Pajarinen, Joni and Neumann, Gerhard and Peters, Jan},
booktitle = {Proceedings of the 36th International Conference on Machine Learning},
pages = {181--190},
publisher = {PMLR},
title = {{Projections for approximate policy iteration algorithms}},
volume = {97},
year = {2019}
}
生成的.bbl:
\bibitem[Akrour et~al., 2019a]{Akrour2019}
Akrour, R., Pajarinen, J., Neumann, G., and Peters, J. (2019a).
\newblock {Projections for approximate policy iteration algorithms}.
\newblock In {\em Proceedings of the 36th International Conference on Machine Learning}, volume~97, pages
181--190, Long Beach, California, USA. PMLR.
\bibitem[Akrour et~al., 2019b]{Akrour}
Akrour, R., Tateo, D., and Peters, J. (2019b).
\newblock {Towards Reinforcement Learning of Human Readable Policies}.
\newblock In {\em 1st Workshop on Deep Continuous-Discrete Machine Learning}, TU Darmstadt.
请注意括号中的出版年份,[Akrour et al., 2019a] Akrour, R., Pajarinen, J., Neumann, G., and Peters, J. (2019a).
我认为它应该只是(2019)
,不是吗?我该如何实现?或者这是我使用的模板中存在的一些异常?
答案1
尽管我从评论中得知我试图实现的可能不是最好的想法,但我找到了一种方法来做到这一点。
我需要apalike.bst
像这样编辑随我的 tex 分发的文件:
*** /usr/share/texlive/texmf-dist/bibtex/bst/base/apalike.bst 2020-04-30 05:30:21.838947719 +0200
--- ctu-apalike.bst 2020-04-30 05:31:59.251578754 +0200
***************
*** 121,127 ****
{ year empty$
{ "empty year in " cite$ * warning$ }
{ write$
! " (" year * extra.label * ")" *
mid.sentence 'output.state :=
}
if$
--- 121,127 ----
{ year empty$
{ "empty year in " cite$ * warning$ }
{ write$
! " (" year * ")" *
mid.sentence 'output.state :=
}
if$