I am using luatex with the following example:
\documentclass[article, 11pt, b6paper, landscape, oneside]{memoir}
\usepackage{natbib}
\usepackage{arabluatex}
\usepackage[nopar]{quran}
\usepackage{lineno}
\usepackage{fontspec}
\begin{document}
This is to cite an English reference which is \cite{Abumostafa1993HintsVC}; and this is to cite the Arabic reference which is \txarb{\cite{MyKey}}. As you see, the Arabic in-text citation is messed up and the bibliography section cannot catch the bib info.
\clearpage
\bibliographystyle{asa}
\bibliography{tmp}
\end{document}
My bib file is:
@Article{Abumostafa1993HintsVC,
author = {Abumostafa, Y S},
title = {{Hints and the Vc Dimension}},
journal = {Neural Computation},
year = 1993,
volume = 5,
number = 2,
pages = {278-288},
isbn = {0899-7667}
}
@Article{MyKey,
author = {المؤلف},
title = {العنوان},
journal = {المجلة},
year = 2000,
volume = 5,
number = 2,
pages = {278-288},
isbn = {0899-7667}
}
I have never been successful in to produce a good pdf in the case that my bib file has both English and Arabic bib items.
I am using emacs and auctex, which uses by default bibtex. I have Archlinux and use texlive.
EDIT: After trying using biblatex and biber (per the advice of the comments below):
\documentclass[]{article}
\usepackage[autostyle]{csquotes}
\usepackage[
backend=biber,
style=authoryear-icomp,
sortlocale=de_DE,
natbib=true,
url=false,
doi=true,
eprint=false
]{biblatex}
\addbibresource{tmp.bib}
\usepackage[]{hyperref}
\hypersetup{
colorlinks=true,
}
%% ##############################
\begin{document}
Lorem ipsum dolor sit amet~\citep{Abumostafa1993HintsVC}.
At vero eos et accusam et justo duo dolores et ea rebum~\citet{MyKey}.
\printbibliography
\end{document}
this is the result (not appropriate of course):

EDIT: When I ran biber from the shell, it gave me this error messages:
[0] Config.pm:302> INFO - This is Biber 2.9
[0] Config.pm:305> INFO - Logfile is 'tmp.tex.blg'
[49] biber:313> INFO - === Wed Dec 13, 2017, 12:44:00
[127] Utils.pm:185> ERROR - Cannot find control file 'tmp.tex.bcf'! - did you pass the "backend=biber" option to BibLaTeX?
[127] Biber.pm:114> INFO - ERRORS: 1
EDIT:
I tried after adding the fontspec and arabluatex and compiling with emacs after clean all. The code is:
\documentclass[article, 11pt, b6paper, landscape, oneside]{memoir}
\usepackage{arabluatex}
\usepackage[nopar]{quran}
\usepackage{lineno}
\usepackage{fontspec}
\usepackage[autostyle]{csquotes}
\usepackage[
backend=biber,
style=authoryear-icomp,
sortlocale=de_DE,
url=false,
doi=true,
eprint=false
]{biblatex}
\addbibresource{tmp.bib}
\begin{document}
This is to cite an English reference which is \cite{Abumostafa1993HintsVC}; and this is to cite the Arabic reference which is \cite{MyKey}.
\printbibliography
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
However, it compiled and generated the pdf but without the Arabic name of the author in both the in-text citation and bibliography. The output is:




bibtex8(which can handle 8-bit-encoded input), or (better still)bibtexu, which can handle utf8-encoded input natively? For that matter, which TeX distribution do you employ? It would be helpful if you edited your posting to provide a couple of examples of both english and arabic bib entries. – Mico Dec 11 '17 at 16:43asabibliography style online somewhere? – Mico Dec 11 '17 at 18:42natbibpackage; same problem exists! – Waleed A. Yousef Dec 11 '17 at 19:01Command -> Clean all. Then recompile with lualatex, then do biber once, and finally recompile with lualatex twice. – Robert Alessi Dec 13 '17 at 12:48bibergenerated the bib without the Arabic names. Please, see the EDIT above at the end of the post. – Waleed A. Yousef Dec 13 '17 at 19:35arabluatexuses Amiri font by default. What do you get fromfc-list | grep -i amiri? – Robert Alessi Dec 13 '17 at 20:23/usr/share/fonts/TTF/amiri-quran.ttf: Amiri Quran:style=Regular,عادي /usr/share/fonts/TTF/amiri-bold.ttf: Amiri:style=Bold,عريض /usr/share/fonts/TTF/amiri-regular.ttf: Amiri:style=Regular,عادي /usr/share/fonts/TTF/amiri-slanted.ttf: Amiri:style=Slanted,مائل /usr/share/fonts/TTF/amiri-quran-colored.ttf: Amiri Quran Colored:style=Regular,عادي /usr/share/fonts/TTF/amiri-boldslanted.ttf: Amiri:style=Bold Slanted,عريض مائل– Waleed A. Yousef Dec 14 '17 at 04:55\txarb{}just as I did in my answer below? – Robert Alessi Dec 14 '17 at 18:03biberandbiblatexwill not need it! Now, (1) after I put\txarb{}intmp.bibit produced exactly as your pdf below. But now: what is the difference then as long as I put\txarb{}in thebibfile. (2) still the Arabic bibliography is LR not RL – Waleed A. Yousef Dec 14 '17 at 19:34biblatex+biberare needed anyway, but you won't have any Arabic printed if not inside\txarb{}. As for the RTL bibliography, as I said, in this comment: https://tex.stackexchange.com/questions/405638/luatex-and-using-both-english-and-arabic-bibliography-with-natbib#comment1012102_405905 you may have to teachbiblatexhow the fields are to be displayed. I think that kind of work hasn't been done so far. – Robert Alessi Dec 14 '17 at 23:29