| ALthough the table looks the same and has the same title in each
place that you use it, it will be assigned different numbers and
you probably want each reference to refer to the number of the
nearby table, right?
In order to do that, you have to have a unique symbol for the table
in each place that it is used. Right now, each time that you
include the table file you are declaring the same symbol again
and getting those dupsymbol errors. The <reference> tag can't tell
which of the duplicate symbols that you are giving it is the
symbol that you really are referencing.
So you have two ways to give the table a unique symbol in each place
that it is used:
1. Remove the <table>(title\symbol) tag from the file that you will
be including in many places. Put the <table> tag into the file
that does the including right in front of the <include> tag:
<table>(title\symbol_1)
<include>(table_file.gnc)
Then you can reference the table as <reference>(symbol_1).
The next time you want to include the table, you change the symbol
<table>(title\symbol_2)
<include>(table_file.gnc)
Then you reference the table as <reference>(symbol_2).
That avoids the duplicate symbols and the references come out right.
This may offend your esthetics however. Putting a table off in
a separate file but keeping its <table> tag somewhere else is kind
of kludgey.
2. This method declares the table's "symbol" as a tag in the main file and
then lets the <table> tag in the included file get its symbol by
referencing the tag. This is a little more like magic if you have
never declared a tag... Here's how it goes.
In the main file, you write:
<define>(my_table_symbol\symbol_1\\\\\symbol_1)
<include>(table_file.gnc)
Then you alter the table_file.gnc to have a <table> tag like this:
<table>(title\<my_table_symbol>)
THis leaves the <table> tag in the table_file, where it makes sense
to have it, but causes it to get its symbol from the most recent
definition of the tag <my_table_symbol>. Your reference would be
written as <reference>(symbol_1), as in method 1.
The next time that you want to bring in the table file, you would
write the <define> tag with "symbol_1" replaced with "symbol_2",
and you would reference it as <reference>(symbol_2).
When you write those <define> tags be sure to get the backslashes
right! There are five of them between the first "symbol_1" and
the second "symbol_1". You can use any text in place of
"my_table_symbol" but don't use the name of an SDML tag!
bill
|