lf- / typst-algorithmic

Algorithm pseudocode typesetting library for Typst

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inline comments?

dantechguy opened this issue · comments

Hi, Thanks for the superb package. I'm currently writing my dissertation (due in 3 weeks!) and was wondering if it's possible to have inline comments, which are also styled like this?

image

Any help is greatly appreciated, even if it's a no.

Thanks for your time!
Dan

commented

I have a dissatisfying answer to this, unfortunately. As far as I can tell, Typst doesn't have facilities for right-aligning within a line. We could make the table have another column for them, but that feels bad since it would wrap actual content.

In responding to this issue I came up with a really bad prototype of inline comments here that has obvious design flaws and I will not release as an official version (see the commit message for details). But it may solve your problem for you: https://github.com/lf-/typst-algorithmic/tree/jade/inline-comments-bad

Feel free to just copy the code into your project and hack it up as necessary <3

Thanks for flying with typst-algorithmic.