> I think PNG is fine since it's portable (pun intended) but vector
graphics would be better.
The immediate issue would be using the graphics in PTX PDF output.
Either having a PNG is necessary (between the two options under
discussion) or having the actual tikz code is necessary.
> How hard would it be to add a webwork-tikz-extraction phase in the
pretext script?
I think I should try clarifying again. I'm not asking about PTX
source where you might have a "webwork" element and it might have a
"latex-image" inside of it. I think that may be where you are thinking
if you are thinking about a webwork-tikz-extraction phase. That's an
important thing to work on at a later stage.
I would like input on when I have a PG problem that was born in the
WeBWorK world somewhere. It was not born out of PreTeXt. Someone coded
a tikz-based image into it, which is a new WW feature to be able to
do.
Now a PTX book might call this problem from the host server. What is
returned is a "webwork-reps" element that has a "static" child, and
inside that "static" it is XML that very closely resembles what a
human might have written into a PTX "exercise", with "statement" etc.
There are no "var" elements for example. When there is an image to
load, it will be an "image" element inside the "static".
The question is basically should that "image" have a "src" attribute
that refers to a PNG file that WW generated? Otr should that "image"
element have a "latex-image" child with some tikz code? In the latter
case, no tikz is extracted from a "webwork". It would be extracted
from an "exercise" in the assembled source, after the content of the
"static" has replaced the "webwork" in that source.
Or option 3 is somehow both. An "image" with a "latex-image" but also
the "image" uses an attribute to point to that PNG file as a fallback
if the tikz has not been processed locally yet.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/pretext-dev/4b4e6c56-b368-4e61-aeb4-a66d916d498bn%40googlegroups.com.