As part of the Proteus project, the ULA team authored two #cardsort problems with #prefigure diagrams included in a #response. Generated images, like #prefigure, #latex-image, and so forth, require a @label attribute, which becomes the filename of the image. Including a generated image in a cardsort response or premise, however, generates a duplicate-label error in spite of the author including a unique label. This seems likely to be an issue in other problem types, such as Parsons problems. Following some discussion in
https://github.com/PreTeXtBook/pretext/issues/2927, I'm writing here to start a broader discussion.
Two points from that discussion:
-- The duplicated elements are formed in the assembly process, which includes the labeled images twice. This triggers the error though the resulting behavior is what we want: the image is created once with two references to it. So a reasonable solution is to simply move the check on duplicate labels earlier in the assembly process.
-- One copy of the #image is included inside a #tabular, which violates the schema. If we want to support this feature, we need another element to support the layout in static builds, perhaps an sbsgroup.
David