Discussion:
Index entries and include files
(too old to reply)
Wm. David Bentlage
2008-12-16 00:14:37 UTC
Permalink
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
Jeff Kingston
2008-12-16 19:47:16 UTC
Permalink
Post by Wm. David Bentlage
Hello,
document twice. This include file contains Index entries. If
I make a copy of "list-include.wri" and use it instead for the
Is there a way to overcome this error? I really want to be able
to produce a section of documentation, including index
this information where needed. Making multiple copies of the
@Include file seems to defeat the point of @Include.
No way in Lout. You could work around it by creating multiple
links to your common file and using the link names in the
@Include commands. Lout would then think that it was including
different files, but in reality they would all be the same file.

Jeff Kingston

Loading...