Skip
repetitive navigational links
L-Soft  -  Home of  the  LISTSERV  mailing list  manager LISTSERV(R) 14.5
Skip repetitive navigational links
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2002)Back to main IVRITEX pageJoin or leave IVRITEXReplyPost a new messageSearchProportional fontNon-proportional fontLog in
Date:         Sun, 19 May 2002 13:26:56 +0300
Reply-To:     Dekel Tsur <[log in to unmask]>
Sender:       Hebrew TeX list <[log in to unmask]>
From:         Dekel Tsur <[log in to unmask]>
Organization: Tel Aviv University
Subject:      Re: Conflict between packages in elatex
In-Reply-To:  <[log in to unmask]>; from Rama
              Porrat on Sun, May 19, 2002 at 11:40:26AM +0300
Content-Type: text/plain; charset=us-ascii

On Sun, May 19, 2002 at 11:40:26AM +0300, Rama Porrat wrote: > If you have the time, can you explain in a few > words why is this a working solution? The rlbabel.def redefines the \arabic macro (or more precisely, the internal \@arabic macro) in the following way: \def\@@number#1{\ifmmode\else\beginL\fi#1\ifmmode\else\endL\fi} \let\@@arabic=\@arabic \def\@arabic#1{\@number{\@@arabic#1}} The \@@number insert \beginL .. \endL around the number, unless TeX is in math mode, in which these primitives are forbidden. The endnotes package define \theendnote by \def\theendnote{\arabic{endnote}} The \endnote performs (among other things) the following definition: \edef\@theenmark{\theendnote} Since \edef is used, the \@@number macro is expanded at the time the \endnote macro is called, and since TeX is not in math mode, the token list of \@theenmark will contain the \beginL,\endL primitives. Since endnotes typeset the endnote mark in math mode, an error occurs. My proposed solution was to redefine \theendnote so it won't use the \@@number macro: \def\theendnote{\@@arabic\c@endnote} A very minor problem with this solution is that if the user writes \theendnote in his text, the number will not be reversed. Alternative solution: 1) Redefine the appropriate macros from endnotes.sty so the endnote mark will not be typeset in math mode (endnotes.sty uses math mode in order to typeset the mark in superscript, but the proper way to do it in latex2e is to use \textsuperscript). or 2) A more general solution, is to redefine the \@@number macro in a way that it will work also when it is used inside \edef: \def\@@@number#1{\ifmmode\else\beginL\fi#1\ifmmode\else\endL\fi} \def\@@number{\noexpand\@@@number} However, I'm not sure whether this has bad side effects.


Back to: Top of message | Previous page | Main IVRITEX page

LISTSERV.TAU.AC.IL CataList email list search Powered by LISTSERV email list manager