The document is compiling in Xelatex and the whole document is Persian using the package xepersian. The footnotes are all in English but they are aligned right and the numbers are persian. I want the footnotes to be aligned at the left side of the document and the numbers of them to be in English. Note that just the numbers at the bottom of the page should be in English, the numbers referring them in the text should be Persian.
-
Since you have a response below that seems to answer your question, please consider marking it as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). If it does not answer your question, please consider adding some more information how the answer could be improved to suit your question.– brian-ammonCommented Dec 1, 2012 at 22:13
Add a comment
|
3 Answers
You can use the \LTRfootnote
command to set the footnote alignment from left to right. Just keep in mind that this command does not change numbers to the Latin format.
use پانویس
and زیرنویس
for example:
\documentclass{article}
\usepackage{xepersian}
\begin{document}
یک مثال از پانویس\پانویس{left to right} و یک مثال از زیرنویس\زیرنویس{از راست به چپ}
\end{document}
-
2Maybe you could expand that with some TeX code. A complete minimal example is usually more helpful.– mafpCommented Oct 6, 2013 at 7:51
-
-
1Yes, I figured that from the backslashes ;-) But it is still no complete minimal example, and that is what I meant with "some TeX code".– mafpCommented Oct 6, 2013 at 15:55
-
1This solution seems not working when we use
\documentclass{report}
– PedramCommented May 3, 2015 at 22:24
Here is an example:
\documentclass[a4paper,12pt]{article}
\usepackage{ptext}
\usepackage{lipsum}
\usepackage{xepersian}
\settextfont{Yas}
\makeatletter
\renewcommand{\@makefntext}[1]{\parindent 1em
\noindent\hbox to 1em{}% if you want to indent footnote text you can change the width of the hbox (e.g. \hbox to 2em{})
\llap{\if@RTL\else\latinfont\fi\@thefnmark)\,\,}#1}
\makeatother
\begin{document}
\ptext[1]\footnote{\ptext[1]}\LTRfootnote{\lipsum[1]}
\end{document}