persiantex/xepersian

problem with natbib (style: chicago-fa)

vafakhalighi opened this issue · 0 comments


Brief outline of the issue

I am using xepersian with hyperref and natbib (bibliograpgystyle: chicago-fa). The problem is this:
If a reference with two authors is cited in a way that the first author's namepositioned is at the end of one line and the second author's name at the beginning of the next line, the whole text in these two lines (instead of the names and the year) will be linked to the bib entry.

P.S. I am using the texlive distribution included in Debian Buster.

Check/indicate

  • Relevant to the bidi package
  • The bidi package issue tracker has been searched for similar issues?
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate
  • Links to <qa.parsilatex.com> discussion if appropriate

Minimal example showing the issue

\documentclass[12pt,a4paper]{article}

\usepackage{natbib}
\usepackage[pdfusetitle]{hyperref}
\usepackage{xepersian}
\settextfont[
Script=Arabic,
ItalicFont=Nazli,
ItalicFeatures={FakeSlant=0.25},
]{Nazli}
\setlatintextfont{Liberation Serif}
\begin{document}
	سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام
	\cite{Staniforth2012Horizontal}
	سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام سلام
\bibliographystyle{chicago-fa}
\bibliography{main}

\end{document}

main.bib

@Article{Staniforth2012Horizontal,
  author    = {Staniforth, Andrew and Thuburn, John},
  title     = {Horizontal grids for global weather and climate prediction models: a review},
  journal   = {Quarterly Journal of the Royal Meteorological Society},
  year      = {2012},
  volume    = {138},
  number    = {662},
  pages     = {1-26},
  authorfa  = { استنیفورث and توبرن },
  doi       = {10.1002/qj.958},
  eprint    = {https://rmets.onlinelibrary.wiley.com/doi/pdf/10.1002/qj.958},
}

Expected behavior

Log and PDF files