I'd like to wrap certain chunks of text in my Plain TeX document so that, to the right of each line in the chunk, a specific character is printed in the right margin.
All of these characters should be at the same horizontal position in the margin, say 3ex to the right of the text chunk's right margin.
Using a vertical bar | as the character will let me show which chunks of text in the document have been modified versus the previous draft of the document.
LaTeX has a package to mark changes with marginal bars, but none seems available in TeX. The method I'm proposing here is not esthetically beautiful, but will get the job done and seems likely to be simple to implement. If, however, it is not possible to wrap arbitrary chunks of text in this way, then I could live with wrapping whole paragraphs.
I could imagine a macro like \markchunk{Four score and eight years ago} or a pair of macros like:
\markstart
Four score and eight years ago
\markend
Thank you!
\marginalstarmacro to put a character in the right margin. This doesn't work for me because, if I had a big chunk that covered 20 lines on the typset page, I would have to make 20 calls to marginalstar, plus I would not know where the line breaks are. – Iron Pillow Feb 07 '15 at 02:14changebarisn't an option, perhaps you could make your\markstartand\markendmacros be calls to\marginalstarwith different characters just to indicate the beginning and end of the passage. – musarithmia Feb 07 '15 at 04:39\sidenotecommand defined in this answer (http://tex.stackexchange.com/questions/86049/position-margin-notes-relative-to-left-margin-in-plain-tex?rq=1) and then\def\markstart{\sidenote{\it start edit}}}or a start symbol, and likewise for\markend. – musarithmia Feb 07 '15 at 04:53\marginalstar, and it is more or less acceptable. I would still like to hold out for a solution to the question as posed, however. – Iron Pillow Feb 07 '15 at 08:38\vadjustto put a rule in the margin - but general multiline revision bars is a much more complex problem; you need to add markers and write an output routine to find them and add bars to the output pages at the right points. David Salomon's Advanced Texbook has an extended example showing one possible approach. – Thruston Feb 07 '15 at 11:43\vadjustbut could not figure out how to use it to solve my question. I'm very interested in how that might be done, so if you have the time to sketch it out in an answer, I'd be most appreciative. – Iron Pillow Feb 11 '15 at 18:06