In verse package, one can write anything before a line using \flagverse{}. This command, however, must also come before the line. This causes some trouble to read the lines in the source, since it's confusing to distinguish what is line and what is flag; so I was thinking to modify it in order to put the \flagverse{} command after the line, but still in such a way that it displays the flag before the line in the pdf.
The source for this command is:
\newcommand{\flagverse}[1]{%
\hskip-\vleftskip\llap{#1}\hskip\vleftskip
\ignorespaces
}
What I need is a \newcommand such that
\begin{verse}
this is a line \\
this is another line \flagverse{this is a flag} \\
\end{verse}
produces
this is a line
this is a flag this is another line

\marginpar?? – David Carlisle Aug 07 '22 at 19:47\flagverse{}on the other hand adjusts the lines to its size, instead of breaking the text. – Rhythmical Diphthong Aug 07 '22 at 20:05\rlapso you could use the same inside\marginpar\rlapdoes not adjust anything it will always write the note on one line over-printing anything if it is too big as its size is hidden, – David Carlisle Aug 07 '22 at 20:15