Index entries and include files

"Wm. David Bentlage" <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Message-ID <121620080013.1952.4946F2C10007102D000007A022230704929B0A02D29B9B0EBF039A070301049C@att.net>
Hello,

I'm using lout 3.30.  I've been having problems with lout generating the following error:

lout file "list-include.wri" (from "00main.wri" line 30):
    4,19: cross reference @Index&&12.4255.list-include.wri.1 used previously, at "00main.wri" 12,10 \ "list-include.wri" 4,19
    4,19: cross reference @PageMarker&&12.4255.list-include.wri.1 used previously, at "00main.wri" 12,10 \ "list-include.wri" 4,19
    4,19: link destination 12.4255.list-include.wri.1 ignored (there is already one at "00main.wri" 12,10 \ "list-include.wri" 4,19)


The issue appears to come from @Including the same file in my document twice.  This include file contains Index entries.  If I make a copy of "list-include.wri" and use it instead for the second @Include, the error goes away.

Is there a way to overcome this error?  I really want to be able to produce a section of documentation, including index entries, and place it in a file and then subsequently @Include this information where needed.  Making multiple copies of the @Include file seems to defeat the point of @Include.

Below is a sample document and @Include file which creates the error:

@SysInclude{tbl}
@SysInclude{xrgb}
@SysInclude{book}
@Book
//
@Chapter @Title {Introduction} @Begin
@BeginSections
@Section @Title{A} @Tag{aaa} @Begin

@TL
@DTI{one}{Item one}
@Include{"list-include.wri"}

@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}
@DTI{Intervening}{abcdef}

@Include{"list-include.wri"}
#@Include{"list-include-copy.wri"}
@REL
@End @Section
@EndSections
@End @Chapter


And the following is the sample include file, "list-include.wri".

@DTI{Item}{Item from include file to index.
galileo @RawIndex{Galileo Galilei}
galileo.telescope @SubIndex{telescope, his use of}
}


Thanks,
David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.