In CSAwesome pre-PreText we had some markup that added timing information to each chapter with an image and some text (a picture of a clock and either "45 minutes" or "90 minutes"). What's the best way to do something like that in PreText? I couldn't find any elements in the PreText vocabulary that seemed appropriate.
--
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/b84442bc-1f11-4432-b0f6-523a7c6f941an%40googlegroups.com.
I guess that's specified in project.ptx? And we have one set up so I tried adding a rule to it to match a <time> element but it didn't seem to do anything so I'm probably holding it wrong.
--
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/ff3204f2-4995-48c7-8cc3-e1c512605cben%40googlegroups.com.
I guess that's specified in project.ptx? And we have one set up so I tried adding a rule to it to match a <time> element but it didn't seem to do anything so I'm probably holding it wrong.
--
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/ff3204f2-4995-48c7-8cc3-e1c512605cben%40googlegroups.com.
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/pXT5rY8thDQ/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/CACm44N-bO7qX8eRzrq-bJ0%3DHMbmnypjSn7sBSxYYN9aseLWUtQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/8563b8a7-dcdc-446e-ad7f-af0b5caba8e6n%40googlegroups.com.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/pXT5rY8thDQ/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/MTAwMDAyNS5iZWV6ZXI.1748397797%40pnsh.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CAMiqbmmkc%3DiSM%3DCvLVw8jB2uK5z37%2B4_UCoKhZN9kXAkNCK9CQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/796D671F-1783-448F-8660-2DBB029CE993%40gmail.com.
You write an xsl style sheet that imports pretext-html.xsl and include it with your project.
Then you can specify the extra xsl in the project.ptx file. Any templates you write will override the default ones.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/5a05f21a-c681-4ec4-ac7d-68130a34f343n%40googlegroups.com.
We use custom xsl for APEX, but for PDF, not HTML. If you want to see how it's implemented, the repo is here:
https://github.com/APEXCalculus/APEXCalculusPTX
Even as an instructor I don't think I could reliably predict a reading time.
I might create a homework set that I think should take an hour. Some students finish in 10 minutes. Some show up angry, looking for help because they've spent 6 hours on it.
If you really want the clock, you could create a set of clock images for different times, put them in the assets folder, and then extend Rob's suggestion with something like:
<sidebyside widths="50% 20%" margins="auto">
<p>Reading time: 45 minutes</p>
<image source="images/clock-45.png/>
</sidebyside>
--
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/MTAwMDA0My5iZWV6ZXI.1748448339%40pnsh.

--
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/2WJPFT.TMJVSQCUQ9CK%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrcRNnaAwyZsSNepFbfrOQoL9dbbaA2Z_8ZJpJTRw8sZWA%40mail.gmail.com.
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/MTAwMDAxNi5iZWV6ZXI.1779919276%40pnsh.