writing a book in arabic, I want to make some comments by footnotes, in english and in arabic. The footnotes in arabic are from Right to Left, and I can put the rule of the footnote on the right side of the page. By the same, the english footnote (in the english environment) is from Left to Right, and I put the rule on the left side. In the case when I have two footnotes, in arabic and in english, in the same page, I want to have two rules of the footnotes in the same time, on the left and on the right side of the page, because of the two footnotes (in the page 3 of my ECM, I want to have a rule below the arabic footnote too...). Any one have an idea for that ? Thank you...
I post a minimal example...
\documentclass[14pt,a4paper]{extbook}
\usepackage{titlesec}
\usepackage{minitoc}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.2,AutoFakeSlant=-0.02]{Traditional Arabic}
\setsansfont[Script=Arabic,Scale=1.5]{Traditional Arabic}
\def\efootnote#1{\renewcommand{\footnoterule}{\raggedright\vspace*{-3pt}\rule{2in}{0.4pt}\vspace*{2.6pt}}\begin{english}
\hspace*{-5pt}\footnote{\hspace*{2pt}\LR{#1}}\end{english}}
\def\afootnote#1{\renewcommand{\footnoterule}{\raggedleft\vspace*{-3pt}\rule{2in}{0.4pt}\vspace*{2.6pt}}\footnote{\hspace*{2pt}\RL{#1}}}
\begin{document}\LR{
Page with english footnote\efootnote{English footnote}
\newpage
Page with arabic footnote\afootnote{هامش عربي \LR{Arabic footnote}}
\newpage
Page with english\efootnote{English footnote} and arabic\afootnote{هامش عربي \LR{Arabic footnote}} footnotes.
}
\end{document}

\renewcommand{\thefootnote}{\hspace*{5pt}\fnsymbol{footnote}}
– Faouzi Bellalouna May 27 '14 at 05:40minitoc, since they are not relevant to my answer. – Alan Munn May 27 '14 at 11:34minitoc, now that I've edited the answer? Thanks. – Alan Munn May 27 '14 at 12:06\textwidthfootnoterulecommand frombidiplus it which will put a single full width line for all footnotes. If you use that technique, you don't need my solution at all, but instead can (mainly) usebidiplus thezref-perpagepackage. I will add that to my solution. – Alan Munn May 27 '14 at 16:43