Page LayoutFixed spacing between two footnotes with latin+arabic text

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Fixed spacing between two footnotes with latin+arabic text

Post by meho_r »

First, I did ask this question here, but there was no reply. I hope someone here will have an idea how to solve this problem.

I have a document with main text in latin, but it contains arabic text from time to time. Since arabic tends to get positioned higher or lower than latin text when mixed with it, TeX makes sure that there is no overlapping so it extends line spacing if necessary (which really can look weird). To solve this, I set \lineskiplimit=-1000pt in the Preamble, risking that some overlapping occurs (I'll make sure this does not happen manually rather than let TeX do it).

However, there is a problem with footnotes: spacing between a footnote containing only latin text and the one containing latin and arabic text gets larger than those containing latin text only. E.g.:

1 Author 1, 2009
2 Author 2, 2009
3 Author 3 (and his name in arabic), 2009
4 Author 4, 2009
5 Author 5, 2009

In this example, spacing after 3rd footnote text is larger than between others (at zoom 1600% in Adobe Reader, spacing between letters "o" in word "Author" is 181px for all footnotes except 3rd, after which it is 193px. In my original document, this is even more noticeable). So, how to make sure that this spacing is even, no matter does text contain arabic or not?

P.S. I'm using setspace package (disemulated it first, of course, because of memoir), but it doesn't affect footnotes anyway. Also, this appears with xelatex and arabxetex too.

Here's a complete simplified example:

Code: Select all

\documentclass[12pt]{memoir} 

\usepackage[utf8]{inputenc} 
\usepackage[LAE,T1]{fontenc} 

\usepackage[arabic,croatian]{babel} 

\DisemulatePackage{setspace} 
\usepackage{setspace} 
\setstretch{1.1} 

\lineskiplimit=-1000pt 

\begin{document} 

Test\footnote{Author 1, 2009} 
Test\footnote{Author 2, 2009} 
Test\footnote{Author 3 (\textAR{أبو حامد الغزالي}), 2009} 
Test\footnote{Author 4, 2009} 
Test\footnote{Author 5, 2009} 

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply