Prefigure arrow color

10 views
Skip to first unread message

Drew Lewis

unread,
Jan 21, 2026, 11:27:29 AM (5 days ago) Jan 21
to PreTeXt support
I am observing some weird behavior with the color of arrowheads in a Prefigure image.  If I try to do something like

<line at="L" endpoints="((0,0),(1,1))" stroke="blue" arrows="1"/>

Then in my PreTeXt book, and also in the PreFigure playground, I get a blue line with a black arrowhead.  Curiously, if I try to build the diagram directly with `prefig build` I get a blue line with a blue arrowhead.  

My sense from the documentation is that the arrowhead should inherit the @stroke from the line, as the command line build does.

Is there something I need to be doing in my source, or is this a bug?

Thanks,
Drew

David Austin

unread,
Jan 21, 2026, 11:36:24 AM (5 days ago) Jan 21
to pretext...@googlegroups.com
Thanks for letting me know about this, Drew.  You're correct in assuming that the arrrowhead should be the same color.  This is a bug that I must have introduced recently when I made some changes for including diagrams in a PreTeXt Plus document.  I'll try to have a fix available soon and will write back then.

David

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/7617617c-7558-4793-a5f2-0f573c6b46efn%40googlegroups.com.

David Austin

unread,
Jan 21, 2026, 3:18:03 PM (5 days ago) Jan 21
to pretext...@googlegroups.com
OK, I've investigated this problem a little bit, and it seems to be due to the new version of the diagcess library that we're using to explore annotated diagrams.  When you say that you see the problem in a PreTeXt document, I'm assuming that the problematic diagram is annnotated.  I don't see the problem with diagrams not having annotations so please let me know if that's not the case.  All diagrams in the Playground are annotated (whether an author has added annotations or not), which is why the problem is always present in the Playground.

There's a relatively easy fix on my end, but it doesn't feel like the right one.  I'll contact the author of diagcess, see how we can coordinate on this issue, and report back.  Thanks again for the heads up.

David

On Wed, Jan 21, 2026 at 11:27 AM Drew Lewis <drew....@gmail.com> wrote:

David Austin

unread,
Jan 25, 2026, 4:00:08 PM (13 hours ago) Jan 25
to pretext...@googlegroups.com
Version 1.4.0 of diagcess is now integrated into PreFigure and the Playground.  This fixes the issue Drew reported with arrowheads and adds some additional features, such as label highlighting and improved color contrast.  

Note that the new diagcess is not yet integrated into PreTeXt so you'll still see the arrowhead problem when exploring an annotated PreFigure diagram in PreTeXt output.  This will also be fixed pretty soon.

Just let me know if other issues show up.

David
Reply all
Reply to author
Forward
0 new messages