5

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}
  • Please tell us which tool (if any) your friend uses to generate the bibliography and the citation call-outs. – Mico May 27 '16 at 9:05
3

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 option numbers.

  • 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.

\documentclass{report}

\usepackage[numbers]{natbib}
\defcitealias{Atkinson}{SomeLongStringUsingPersianLetters}

\begin{document}

\cite{Atkinson}       % numeric citation call-out

\citetalias{Atkinson} % plain string (no brackets)

\citepalias{Atkinson} % string surrounded by brackets

\begin{thebibliography}{99}

\bibitem{Atkinson} Atkinson A.C., (1994). Fast very robust
    methods for the detection of multiple outliers, {\it
    American Statistical Association.} 89, 1329--1339.

\end{thebibliography}
\end{document}
  • Thank you very much @Mico for your help. Please tell me how do I know which one he is using. I listed all the packages used by him in the preamble of his thesis. – Fermat May 27 '16 at 10:29
  • @Fermat - Is there no \bibliography instruction in the body of the paper, and is there no \bibliographystyle instruction anywhere in the paper? Incidentally, which document class does your friend use? – Mico May 27 '16 at 10:39
  • He uses "report" as a documet calss. For the references i see just \begin{thebibliography}{99} \bibitem{Atkinson} Atkinson A.C., (1994). Fast very robust methods for the detection of multiple outliers, {\it American Statistical Association.} 89, 1329-1339. \end{thebibliography} – Fermat May 27 '16 at 10:46
  • Thank you @Mico for your detailed answer. I can not mark the answer as an accepted one since I don't know how to merge my accounts and access to this new account. – Fermat May 27 '16 at 12:42
  • @Fermat - I've posted a query to the site moderators, asking that your accounts be merged. – Mico May 27 '16 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.