[XeTeX] Compatibility issues with ednotes and pstricks or TikZ
Nathan Sidoli
nathan.sidoli at utoronto.ca
Thu Sep 22 17:18:31 CEST 2011
Thank you for all your help with this.
I have been using ednotes for some time because it handles footnotes in
the proper manner for critically edited texts. As can be seen in the
attached file, the text appears as it should in a critical edition:
there are no footnote marks in the text, line numbers are not repeated
in the notes, line ranges are given, the formatting of the notes is
automatic (that is, division between the lemma and the note, etc), and
so on. There are also a number of nice features, such as the ability to
overlap notes, nest notes, etc, all of which are necessary for a text
with a complicated manuscript basis.
Until the bidi footnote features can handle these basics, bidi will not
be able to be used in place of packages such as ednotes or ledmac.
For how long have bidi and ednotes been incompatible? François Charette
, who maintains arabxetex and works on polyglossia, wrote an example
file showing how to use arabxetex + bidi with ednotes to produce
critical editions, so I assumed there would be some effort to keep the
packages compatible.
On 11/09/22 18:01, VAFA KHALIGHI wrote:
> By the way, I do not know why you are using ednotes.sty. If it is
> because of footnote support, bidi package also allows you to do
> paragraph footnotes. For more details, see bidi manual. ednotes is not
> supported by bidi and its use together with bidi should be avoided.
>
> On Thu, Sep 22, 2011 at 5:16 PM, VAFA KHALIGHI <vafaklg at gmail.com
> <mailto:vafaklg at gmail.com>> wrote:
>
> I could not be bothered looking through lineno.sty to see what
> setups they have so this is another quick/dirty fix. The problem
> is that in the definition of \MakeLineNo, they use \sbox, \sbox
> itself uses \set at color. bidi changes the definition of \set at color
> when color/xcolor package is loaded such that in the definition of
> \sbox at the beginning of \hbox, you get \beginR, and at the end
> of \hbox, you get \endR, that is, it makes \hbox and consequently
> \sbox RTL in RTL mode. lineno setup for right linenumbers expect
> that \hbox or \sbox to be an LTR one. Well, it can be RTL but you
> need to reverse the process (putting \hskips, etc) I did not have
> time to look through the whole lineno.sty so instead I used
> \setbox instead \sbox so it fixes the problem. Replace the
> previously given code by this one:
>
> \makeatletter
>
> \@ifpackageloaded{color}{%
>
> \def\MakeLineNo{%
>
> \@LN at maybe@normalLineNumber % v4.31
>
> \boxmaxdepth\maxdimen\setbox\z@\vbox{\unvbox\@cclv}%
>
> \@tempdima\dp\z@ \unvbox\z@
>
> \setbox\@tempboxa=\hbox to \z@{\makeLineNumber}%
>
> \stepLineNumber
>
> \ht\@tempboxa\z@ \@LN at depthbox
>
> \@LN at do@vadjusts
>
> \count@\lastpenalty
>
> \ifnum\outputpenalty=-\linenopenaltypar
>
> \ifnum\count@=\z@ \else
>
> \xdef\@LN at parpgbrk{%
>
> \penalty\the\count@
>
> \global\let\noexpand\@LN at parpgbrk
>
> \noexpand\@LN at screenoff@pen}% v4.4
>
> \fi
>
> \else
>
> \@tempcnta\outputpenalty
>
> \advance\@tempcnta -\linenopenalty
>
> \penalty \ifnum\count@<\@tempcnta \@tempcnta \else \count@ \fi
>
> \fi
>
> }}{}
>
> \makeatother
>
>
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110923/cb9555ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BF_Sesiano_text.pdf
Type: application/pdf
Size: 102833 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20110923/cb9555ca/attachment-0001.pdf>
More information about the XeTeX
mailing list