On 8/29/25 15:15, 'Tevian Dray' via PreTeXt support wrote:
> @text="parse" does not appear to work, but omitting it does.
Well, Andrew said 'parse="text"' and I got it reversed. :-( But if you got a
result without any such thing, that was the main point.
> It is also worth noting that the SVG file takes a long time to process
> as an include unless its opening tags (<?xml> and <!DOCTYPE>) are
> removed. (I'm actually surprised it compiles this way at all...)
Well, we don't ever compile anything. And I'm not sure which process you mean.
The conversion to HTML or the rendering of the page in your browser? As I think
you found, neither <?xml> nor <!DOCTYPE> is necessary.
> Given the Same-Origin issue, I'll probably abandon this approach in
> favor of a link in the caption.
Your blind readers will thank you.
> Before I do, is there a way to rescale
> the included file? The static SVG scales to fit the page; the include
> tries to load it at its (large) intrinsic size, as given in #svg.
All I can think of is to edit teh SVG itself to change a viewBox or
@height/@width or apply some sort of faithful transformation.
Rob