My friend is writing a math thesis in persian language. He wants to cite to references with author names and year both but in persian while the references (at the end of the thesis) are all in English. Is there any way to do this? Please help as I searched and didn't found anything.
This is the command block of his thesis:
\usepackage[top=45mm, bottom=45mm, left=45mm, right=45mm]{geometry}
\usepackage{amsthm,amssymb,amsmath}
\usepackage{bbm, mathrsfs}
\usepackage{fancybox}
\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[all]{xy}
\usepackage{setspace}
\graphicspath{{images/}}
\usepackage{subfigure}
\usepackage[pagebackref=false]{hyperref}
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xepersian}
\settextfont[Scale=1.1]{XB Niloofar}
\linespread{1.50}
\setlatintextfont[Scale=1.1]{XB Niloofar}
\setdigitfont[Scale=1.1]{XB Zar}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\defpersianfont\nastaliq[Scale=2]{IranNastaliq}
\defpersianfont\titr[Scale=1.1]{XB Titre}
\defpersianfont\traffic[Scale=1.1]{B Traffic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\englishgloss[2]{#2\dotfill\lr{#1}\\}
\newcommand\persiangloss[2]{#1\dotfill\lr{#2}\\}
\renewcommand\proofname{\textbf{برهان}}
\renewcommand{\bibname}{مراجع}
%%%%%%%%%%%%%%%%%%%%%%%
\theoremstyle{definition}
\newtheorem{theorem}{قضیه}[chapter]
\newtheorem{lemma}{لم}[chapter]
\newtheorem{definition}{تعریف}[chapter]
\newtheorem{proposition}{گزاره}[chapter]
\newtheorem{corollary}{نتیجه}[chapter]
\newtheorem{mol}{ملاحظه}[chapter]
\newtheorem{example}{مثال}[chapter]
\newtheorem{nama}{نمادگذاری}[chapter]
\newtheorem{hint}{تذکر}[chapter]
\newtheorem{remark}{توجه}[chapter]
\newtheorem{reminder}{یادآوری}[chapter]
%%%%%%%%%%
%\renewcommand{\abstractname}{}
%\renewcommand{\latinabstract}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy}
\cfoot{}
\lhead{\thepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newenvironment{fminipage}%
%{\begin{Sbox}\begin{minipage}}%
%{\end{minipage}
%\end{Sbox}\fbox{\TheSbox}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\input{jeld_infomation}
Best Answer
Does your friend use BibTeX, biblatex, or another tool to create the bibliography?
If he uses BibTeX and the natbib citation management package, he could create "aliases" for the citation call-outs: Use
\defcitealias{key}{<farsi text string>}
to set up the alias, and use\citetalias{key}
and\citepalias{key}
to generate citation call-outs using the Farsi text string. Here,key
is the "key" to a bibliographic entry in question.Addendum: Based on your follow-up comment, it would appear that your colleague is building the bibliography by hand, i.e., without a tool such as BibTeX or biblatex. Moreover, as there is no optional argument to the
\bibitem
instruction, the default citation call-out style would appear to be numeric rather than authoryear.I would like to suggest that your colleague proceed as follows:
He should load the
natbib
package with the optionnumbers
.For each
\bibitem
, provide a\defcitealias
instruction as shown in the example below.To create citation call-outs to these bib entries, use
\citetalias{...}
and\citepalias{...}
directives.I'm afraid I don't know how to work with Persian letters. Hence, the following example uses only Latin letters. Hopefully, it'll be clear how to extend the code to a case with Persian letters.