2021年1月1日星期五

Algorithm left margin and Comment Customizing

I'm trying to save space, reducing both algorithm margins (see 1, on the right). For the right one, I found the code 1, displayed on the left.

Code for customizing the algorithm right margin (left), how the algorithm looks

Another intriguing question is, how do I add a comment in line 1 (Figure 1) after the "do"? All my tentatives failed. I only could place the comment between the "SemCompositeIndex" and the "do".

Below, I present a draft of how it must look. (The | symbolizes the margin)

| foreach entry \in SemCompositeIndex do     // Figure XXX |

Let me know if I need to put more details!

Thank you so much for your attention and participation. Happy new year!

https://stackoverflow.com/questions/65528151/algorithm-left-margin-and-comment-customizing January 01, 2021 at 04:03PM

没有评论:

发表评论