[XeTeX] fancyhdr and plyglossia

Ross Moore ross at ics.mq.edu.au
Sun Jan 31 01:12:48 CET 2010


Hi Jens, and Vafa,

On 31/01/2010, at 10:42 AM, Ross Moore wrote:

> However, looking at the PDF with Acrobat Pro, the missing
> margin-par content is actually included in the PDF.
> It is off to the right, beyond the edge of the visible
> page area.
>
> Probably it is something to do with the width assigned to
> margin-pars, and is being right- rather than left-aligned.
> Just speculating.

Yes.
With this extra preamble coding:

\newbox\leaderbox
\setbox\leaderbox=\hbox{.}
\def\LRleaders{\leaders\copy\leaderbox\hfill}
\def\RLleaders{\LR{\LRleaders}}


and using

   \marginpar{\RLleaders p.6}

the image shows the result.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 82283 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100131/ab575bc1/attachment-0001.jpeg>
-------------- next part --------------


So the directionality is wrong within the margin-pars,
(as well as the width being too large) when specified
within RL-environments.

I'd recommend implementing 2 types of marginpar:
  \LRmarginpar  and  \RLmarginpar  which guarantee
the correct directionality for their contents.
These could be use directly within the LaTeX source,
or there can be a switching mechanism which implements

  \let\marginpar\..marginpar
    where ..='LR' or 'RL',

according to the default requirements of an environment.
Then an optional argument would allow the default to be
overridden, giving the opposite behaviour.


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------





More information about the XeTeX mailing list