I used to change the citation style in my documents using the bloc of commands:
\usepackage[square,authoryear]{natbib}
\setcitestyle{notesep={:},aysep={}}
\usepackage{chapterbib}
Here is my MWE:
\documentclass[12pt,a4paper,oneside,final,onecolumn,thmsb,titlepage]{book}
\usepackage[square,authoryear]{natbib}
\setcitestyle{notesep={:},aysep={}}
\usepackage{chapterbib}
\begin{document}
\citet[22]{Draa2019} states that ...
\bibliographystyle{apalike}
{\renewcommand{\baselinestretch}{1.5}
\bibliography{thebib2}}
\end{document}
the bib file contant is the following
@article{Draa2019,
title={{The Impact of Translation on Reading Comprehension for EST Learners - A Case Study of Computer Science Students at Constantine 2 University}},
volume={51},
journal={{Revue Sciences Humaines}},
author={Draa, A.},
pages={135 --150 },
year={2019},}
I wanted to replace the comma separating the author from the year with the space, and to replace the comma of the note (page number) with a colon.
But, this is no longer working, maybe due to an update of bibtex/natbib versions.
Any help please?
Thank you very much.
Best Answer
After checking,
The package installed in texlive 2021 does not cause bugs; it seems that the 'natbib.sty' file has been previously replaced by an older version. It is likely I did when trying to solve other issues or doing other adjustments.
Sorry for the inconvenience and thank you to everyone.