\index expressions

2009-08-21 Thread Sam Liddicott
I'm trying to extend the indexing of newfangle literate code chunks. I'm: \usepackage{index} so that I can have multiple indexes; but the \index{} command seems to literally interpret the first parameter, so that \index{\chunkname} indexes \chunkname instead of the name. I've tried all kinds of

Re: \index expressions

2009-08-21 Thread Sam Liddicott
The Texbook says: The \write command is somewhht special, because its token list is first read without expansion; expansion occurs later, when the tokens are actually being written to a file. As \index writes to a file, this may be the problem! I'll see if I can

\index expressions

2009-08-21 Thread Sam Liddicott
I'm trying to extend the indexing of newfangle literate code chunks. I'm: \usepackage{index} so that I can have multiple indexes; but the \index{} command seems to literally interpret the first parameter, so that \index{\chunkname} indexes \chunkname instead of the name. I've tried all kinds of

Re: \index expressions

2009-08-21 Thread Sam Liddicott
The Texbook says: The \write command is somewhht special, because its token list is first read without expansion; expansion occurs later, when the tokens are actually being written to a file. As \index writes to a file, this may be the problem! I'll see if I can

\index expressions

2009-08-21 Thread Sam Liddicott
I'm trying to extend the indexing of newfangle literate code chunks. I'm: \usepackage{index} so that I can have multiple indexes; but the \index{} command seems to literally interpret the first parameter, so that \index{\chunkname} indexes "\chunkname" instead of the name. I've tried all kinds

Re: \index expressions

2009-08-21 Thread Sam Liddicott
The Texbook says: The \write command is somewhht special, because its token list is first read without expansion; expansion occurs later, when the tokens are actually being written to a file. As \index writes to a file, this may be the problem! I'll see if I can