Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}‎‎
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

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.

share|improve this answer
    
Thanks, RTL issue solved. –  PHPst Apr 21 '12 at 13:40
    
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
show 6 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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