Willi Egger schrieb am 18.08.2019 um 17:30:
Hi all,
there is an old thread concerning this issue from september 2015. It appears
unfortunately, that this issue persists.
You can reference to places inside a document, but references to an outside
document are broken. The links do not work and no page numbers or texts are
typeset from the external document.
Can someone help me to solve this?
I tried your example and had no problem to get the page and section numbers
from the other document. What you have to ensure is that the tuc-file
for the
other document you want to refer dies exist because context uses it to get
the values for the numbers etc.
Wolfgang
local utilitydata = { }
utilitydata.comment={
["escape"]="[===[ ... ]===]",
["file"]="two",
["format"]="cont-en",
["stamp"]="2019.08.17 11:46",
["version"]=1.31,
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.variables then utilitydata.job.variables = { } end
utilitydata.job.variables.checksums={
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.variables then utilitydata.job.variables = { } end
utilitydata.job.variables.collected={
["macros"]={},
["randomseed"]=0.20989990234375,
["sectionblockorder"]={},
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.structure then utilitydata.job.structure = { } end
utilitydata.job.structure.collected={
["branches"]={},
["name"]="",
["type"]="text",
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.positions then utilitydata.job.positions = { } end
utilitydata.job.positions.collected={
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.passes then utilitydata.job.passes = { } end
utilitydata.job.passes.collected={
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.datasets then utilitydata.job.datasets = { } end
utilitydata.job.datasets.collected={
}
if not utilitydata.job then utilitydata.job = { } end
if not utilitydata.job.pagestates then utilitydata.job.pagestates = { } end
utilitydata.job.pagestates.collected={
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.specials then utilitydata.structures.specials = {
} end
utilitydata.structures.specials.collected={
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.sections then utilitydata.structures.sections = {
} end
utilitydata.structures.sections.collected={
{
["block"]="bodypart",
["conversionset"]="default",
["language"]="en",
["numbers"]=1,
["separatorset"]="default",
["set"]="all",
},
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.counters then utilitydata.structures.counters = {
} end
utilitydata.structures.counters.collected={
["chemical"]={
{ 0, 0 },
},
["combination"]={
{ 0 },
},
["endnote"]={
{ 0 },
},
["figure"]={
{ 0, 0 },
},
["footnote"]={
{ 0 },
},
["formula"]={
{ 0, 0 },
},
["graphic"]={
{ 0, 0 },
},
["intermezzo"]={
{ 0, 0 },
},
["itemgroup:itemize"]={
{ 0, 0 },
},
["linenote"]={
{ 0 },
},
["paragraph"]={
{ 0, 0 },
},
["realpage"]={
{ 4 },
},
["subpage"]={
{ 4 },
},
["table"]={
{ 0, 0 },
},
["textnote:note"]={
{ 0 },
},
["userpage"]={
{ 4 },
},
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.lists then utilitydata.structures.lists = { } end
utilitydata.structures.lists.collected={
{
["metadata"]=2,
["numberdata"]=3,
["references"]={
["block"]="bodypart",
["internal"]=1,
["realpage"]=4,
["reference"]="sec:second",
["section"]=1,
["used"]="fit",
},
["titledata"]={
["label"]="chapter",
["title"]="Second document",
},
},
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.pages then utilitydata.structures.pages = { } end
utilitydata.structures.pages.collected={
{
["block"]="bodypart",
["number"]=1,
["numberdata"]=4,
["prefixdata"]=5,
["state"]="start",
},
{
["block"]="bodypart",
["number"]=2,
["numberdata"]=4,
["prefixdata"]=5,
["state"]="start",
},
{
["block"]="bodypart",
["number"]=3,
["numberdata"]=4,
["prefixdata"]=5,
["state"]="start",
},
{
["block"]="bodypart",
["number"]=4,
["numberdata"]=4,
["prefixdata"]=5,
["state"]="start",
},
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.references then utilitydata.structures.references
= { } end
utilitydata.structures.references.collected={
}
if not utilitydata.structures then utilitydata.structures = { } end
if not utilitydata.structures.references then utilitydata.structures.references
= { } end
utilitydata.structures.references.referred={
{ 1, 10 },
{ 1, 12 },
{ 1, 14 },
{ 1, 16 },
}
if not utilitydata.job then