Last summer I got LaTeX styling set up, and we ended up using the "marginnote" LaTeX package to accomplish this. It did the job, but there is one problem: that package is no longer maintained, so it is not a good long term solution.
I am going to experiment with importing Greg's original LaTeX code for notes and figures in the margin. I think all the code needed is supported by the LaTeX packages that PreTeXt uses.
I'll let you know how this goes.
Two requests:
For Greg: have a look at last year's LaTeX conversion, and let me know if there are any issues that stand out for you. If I can fix them, I will.
(This is the PDF for one of our local remixes. I didn't get around to making an 'official' PDF.)
For Alex (or Rob, or David): the LaTeX macro used by Greg in original APEX look something like (I probably have the order wrong)
\mfigure{X}{reference-id}{caption}{path to figure}
Here X is a number between 0 and 1 that sets the vertical position on the page.
Is there any reasonable way to add an attribute on a figure/image/table/aside that would let us set this number in the ptx source?
(It would be reasonable for the answer to be no. I could let everything default to 0.5 and then hand edit the LaTeX source after the fact.)
I am also not confident that Greg's margin figure macro will be able to handle TikZ source. We'll see. If not, I guess I could run a latex-image processing step that outputs to PDF.