Good in Prefigure Playground Not in Pretext Document

12 views
Skip to first unread message

Teresa “Terri” Magnus

unread,
Aug 10, 2026, 11:18:09 AM (9 days ago) Aug 10
to PreTeXt support
I'm going through some of my earlier figures and converting them to PreTeXt. I eventually will need a clearer tutorial to learn how to do the annotations, but for now I'm just trying to get the images to work. For some reason, my picture of two congruent triangles looks great on Prefigure Playground, but in my document it does not show any triangles, just a list of the vertex labels A B C D E F. Other images that I've created look fine. The current parent is <paragraphs> which is inside <subsection>. I tried changing <paragraphs> to <subsubsection> but I had the same problem. Here is the code in the .ptx:

<figure  xml:id="fig-example-congruence">
      <caption>A pair of congruent triangles.</caption>
      <prefigure xmlns="https://prefigure.org" label="PreFigExampleCong" >
        <diagram xmlns="https://prefigure.org" width="350" height="350" margins="5">
          <coordinates bbox="(-6,-6,6,6)">
            <polygon points="((-4,2),(0,2),(0,5))"
                    closed="yes" fill="yellow"
                    stroke="black" />
              <label anchor="(-4,2)" alignment="sw" scale="0.8">A</label>
              <label anchor="(0,2)" alignment="se" scale="0.8">B</label>
              <label anchor="(0,5)" alignment="ne" scale="0.8">C</label>

            <polygon points="((2,3),(2,-1),(5,-1))"
                    closed="yes" fill="lightgreen"
                    stroke="black"/>
              <label anchor="(2,3)" alignment="nw" scale="0.8">D</label>
              <label anchor="(2,-1)" alignment="sw" scale="0.8">E</label>
              <label anchor="(5,-1)" alignment="se" scale="0.8">F</label>

          </coordinates>
        </diagram>
      </prefigure>
    </figure>

Thanks! Terri

Mitch Keller

unread,
Aug 10, 2026, 11:21:37 AM (9 days ago) Aug 10
to pretext...@googlegroups.com
You need to wrap your prefigure tag in an image tag (still inside the figure tag).


--
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/513e5bf4-12ae-4ac6-85fb-ed66bcfe8a77n%40googlegroups.com.


Teresa Magnus

unread,
Aug 10, 2026, 11:51:57 AM (9 days ago) Aug 10
to pretext...@googlegroups.com
Thank you. That was the issue. Sorry I didn't catch that myself.--Terri

--
You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/NoM4g4Zi2j8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/3AF725CF-8AC5-46D6-A182-498B1B3CFBBE%40rellek.net.
Reply all
Reply to author
Forward
0 new messages