Dear Alexey,

I'm using TeX Live in Ubuntu 14.04 also. The \widowpenalty command in your file works correctly for me. I get two lines at the top of page 2 before the next paragraph begins. If I comment out \widowpenalty I get only one line at the top of page 2 before the next paragraph begins.

However, when I upgraded to Ubuntu 14.04 from Ubuntu 12.04, TeX did not get installed correctly. I had to reinstall TeX as a separate package later. Maybe something similar happened in your case.

Sincerely,
Nicholas

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Nicholas L. Heer, Professor Emeritus
    Department of Near Eastern Languages and Civilization
    University of Washington, Box 353120, Seattle, WA 98195-3120, USA
    E-Mail: [email protected]             Telephone: 206-325-0852
    WWW: http://faculty.washington.edu/heer/
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

On Sat, 17 Jan 2015, Alexey Kryukov wrote:

Hi all,

I have recently installed Ubuntu 14.04, which includes XeTeX v.
3.14159265-2.6-0.99991 (TeX Live 2014/Debian) and noticed that
compiling my current project produces some incorrect line breaks.
My investigations have shown that XeTeX seems to ignore the current
\widowpenalty value (\clubpenalty is respected though). Here's a
minimal example (lipsum paragraphs are selected so that the desired
number of lines is produced):

\documentclass{article}
\usepackage{fontspec}
\usepackage{lipsum}

\widowpenalty=10000

\begin{document}
\lipsum[1-4]
\lipsum[37]
\lipsum[1]
\end{document}

In my tests a widow line is produced at the second page despite the
\widowpenalty setting. Processing the same file with luaTeX gives the
correct result, i. e. an additional line of the paragraph is moved to
the second page.

Can anybody test if this problem is specific for my Ubuntu installation?

--
Regards,
Alexey Kryukov <anagnost at yandex dot ru>

Moscow State University
Faculty of History


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to