[XeTeX] A couple of interesting problems

Jonathan Kew jonathan_kew at sil.org
Fri May 13 16:22:35 CEST 2005


On 13 May 2005, at 2:01 pm, Stephen Moye wrote:

> There are two problems here. I'm not sure if they are XeTeX-specific 
> ....

They're not. The following slightly edited version of your test 
demonstrates the same effect with pdfTeX.

And the reason? \predisplaysize is 16384pt if the last line was 
completely full, I think.

JK

%%%%%%%%%%%%%%%%%%
%!TEX TS-program = pdftex

\newcount\parnum %% Brute force...

\baselineskip=1.25em

\hsize=4.5in

%%%%%%%

This text before

\vskip2\baselineskip

\bgroup
\let\oldpar=\par
\abovedisplayskip0pt
\belowdisplayskip0pt
\abovedisplayshortskip0pt
\belowdisplayshortskip0pt
\parindent0pt \parskip-2\baselineskip
\def\par{$$\phantom\ \global\dimen0=\predisplaysize$$%
\advance\dimen0 -2em\oldpar}%
\everypar={\advance\parnum1 %
      \ifnum\parnum=1 \else\hskip\dimen0 \ \P\ \fi}%
Some Text This is a lot of text that we are going to use to see if
this works or not. Some Text This is a lot of text that we are going
to use to see if this works or not. Some Text This is a lot of text
that we are going to use to see if this works or not. Some Text This
is a lot of text that we are going to use to see if this works or not.

\bf Some more text. Some Text This is a lot of text that we are going
to use to see if this works or not. Some Text This is a lot of text
that we are going to use to see if.
  %this works or not.

\it And yet some more Some Text This is a lot of text that we are
going to use to see if this works or not. Some Text This is a lot of
text that we are going to use to see if this works or not. Some Text
This is a lot of text that we are going to use to see if this works
or not. Some Text This is a lot of text that we are going to use to
see if this works or not. Some Text This is a lot of text that we are
going to use to see if this works or not. Some Text This is a lot of
text that we are going to use to see if this works or not.

\kern-\baselineskip\egroup

Now all of the original values are restored to normal.

\bye
%%%%%%%%%%%



More information about the XeTeX mailing list