3

In my Persian paper all references are in Latin script.

How I can insert references (Bibliography) RTL in XePersian, and how I can convert digits in URLs to west Arabic.

MWE:

‎\documentclass{article}‎‎
\usepackage[]{hyperref}‎‎
‎\usepackage{xepersian}‎‎
‎\settextfont{Yas‎‎}‎‎
‎\setdigitfont{Yas}‎‎
‎\begin{document}‎‎

%‎ ‎1st‎ ‎issue‎
‎\url{‎‎http://www.theregister.co.uk/2006/06/15/‎wikipedia_can_damage_your_grades}‎‎

% 2nd‎ ‎issue‎‎
برای‎ ‎nها‎‎‎ ....

ابتدا‎ n‎ام

‎\end{document}‎‎
5

Here is a version that you can try:

\documentclass{article}
\usepackage{hyperref}
\usepackage{xepersian}
\begin{document}
\setLTRbibitems
\begin{thebibliography}{99}
\resetlatinfont
\bibitem{reference1} 1st‎ ‎issue‎ ‎\url{‎‎http://www.theregister.co.uk/2006/06/15/‎wikipedia_can_damage_your_grades}‎‎
\bibitem{reference2} 2nd‎ ‎issue \rl{برای‎ ‎\lr{CRM}ها‎‎‎ \ldots ‎ ابتدا‎ \lr{CRM}ام}
\end{thebibliography}
\end{document}

or

\documentclass{article}
\usepackage{hyperref}
\usepackage{xepersian}
\begin{document}
\begin{thebibliography}{99}
\begin{LTRbibitems}
\resetlatinfont
\bibitem{reference1} 1st‎ ‎issue‎ ‎\url{‎‎http://www.theregister.co.uk/2006/06/15/‎wikipedia_can_damage_your_grades}‎‎
\end{LTRbibitems}
\bibitem{reference2} 
برای \lr{CRM}ها \ldots\ ابتدا \lr{CRM}ام
\end{thebibliography}
\end{document}

whichever you prefer.

  • I updated my answer. – Simurgh12 Apr 21 '12 at 13:44
  • Thanks. What about 2nd issue? (nام Graphها) do not displayied properly. – PHPst Apr 21 '12 at 13:47
  • Well, you are using Latin script and Latin font and evidently that can not typeset Persian so you need \rl there. See updated answer. – Simurgh12 Apr 21 '12 at 13:51
  • I actually want to type CRMها that is not a formula (I do not want wrap it with $) and your solution will not work without $ Also notice that 1st and 2nd issues are not in bibliography. Thanks – PHPst Apr 21 '12 at 13:58
  • Updated my answer for the third time. – Simurgh12 Apr 21 '12 at 14:02

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.