PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
264 stars 206 forks source link

Animations from source code #1763

Open rbeezer opened 2 years ago

rbeezer commented 2 years ago

Analagous to latex-image and asymptote, describe an animation via source code, rendered via Python code such as the manim project.

Markup like

<video>
  <manim>
  [code goes here, maybe xi:include]
  </manim>
</video>

Prompted by comments from @presnick at a Runestone/PreTeXt workshop.

rbeezer commented 2 years ago

Reporting in: did a pip-install on Ubuntu Linux 20.04 without any problems, once relevant packages were updated. Not trivial, though, it appears. Assumes some system software like ffmpeg.

I've experimented enough that I think I have a pretty clear idea of how construction might mimic our routines for latex-image.

I'd love to see this great animation in a trigonometry text.