Date: Fri, 9 Nov 2001 10:38:21 +0200 Reply-To: Hebrew TeX list <[log in to unmask]> Sender: Hebrew TeX list <[log in to unmask]> From: Nadav Har'El <[log in to unmask]> Subject: Re: \@@number in index In-Reply-To: ; from [log in to unmask] on Fri, Nov 09, 2001 at 01:58:52AM +0200 Content-Type: text/plain; charset=us-ascii On Fri, Nov 09, 2001, Tzafrir Cohen wrote about "\@@number in index": > ... > Produces the following .idx file: > > \indexentry{test}{\@@number {1}} > > > makeindex does not consider this a valid index entry. Indeed latex should > creae: > > \indexentry{test}{1} > > > Does it work for anybody? Indeed, this is not a valid entry, and makeindex will fail on it. You can either change (with sed/awk/perl/whatever) the .idx file before calling makeindex, or better: fix the problem at the source. And the source of the problem is the the Hebrew LaTeX support must not modify \thepage... Indeed, in my (2.09) package (which you can find in ftp.ivrix.org.il) where indexes were supported nicely, I had the following comment: \let\oldpart\thepart \def\thepart{\Lnum{\oldpart}} ... and a dozen other definitions like this % \thepage has not been fixed. This doesn't cause any problems for the % LaTeX code (e.g., the page numbers in the table of contents are typeset % using an explicit \Lnum. Page headings also works because of (??? NO % EXPLICIT LNUM - HOW DOES IT WORK? perhaps because tex automatically % resets the direction) % But the unfixed \thepage may cause problems for users who explicitly % use \thepage in their code (e.g., to create their own page style). But % this is not really a problem: users should know anyway that to typeset % numbers in a hebrew document they must use \Lnum or some other direction % switching command. % % Unfortunately, fixing \thepage is problematic - because makeindex refuses % to accept "\beginL" and "\endL" in its .idx file. % %\let\oldpage\thepage %\def\thepage{\Lnum{\oldpage}} -- Nadav Har'El | Friday, Nov 9 2001, 23 Heshvan 5762 [log in to unmask] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |Drink varnish and you'll get a lovely http://nadav.harel.org.il |finish.  Back to: Top of message | Previous page | Main IVRITEX page
 LISTSERV.TAU.AC.IL