🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #10520

Change bars in LaTeX

#10520
From: John M. Canning
Date: Thu, 27 Jun 1991 20:39
23 lines
1744 bytes
   This may be a FAQ from a newcomer, but...

   I want to show the differences between two LaTeX files by drawing vertical
bars in the margin next to the lines that were altered.  I think the legal
profession calls this red lining.  Using Unix utilities I can generate a
LaTeX file with commands preceding and following the text that is to be
marked as changed.  Does anyone have a macro that can draw the vertical
bar between the first and last line spanned by the two commands?  Better yet,
is there a Unix program that could generate the LaTeX file in the way
that diffmk generates a troff file?

   What I would need would be a pair of commands, say \baron & \baroff, that
turn on and off the vertical bar.  The \baron command could just mark the
starting y position for the bar while the \baroff command would draw the bar
on the page.  I would also need a way to draw the bar across page boundaries
and perhaps change the side of the page on which the bar is drawn depending
on whether it is an odd or even page number.  One colleague suggested putting
a \marginpar{\rule{1pt}{12pt}} command at the beginning of every changed
line.  I'm worried that LaTeX "may run out of space if [I] use too many"
marginpar commands, as the LaTeX User's guide warns.  Thanks for any help.

           - John Canning (jc@cvl.umd.edu)
Technical Details
Message-ID: <4994@cvl.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven.umd.edu!cvl!jc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven.umd.edu!cvl!jc
From: jc@cvl.umd.edu (John M. Canning)
Newsgroups: comp.text.tex
Subject: Change bars in LaTeX
Message-ID: <4994@cvl.umd.edu>
Date: 27 Jun 91 20:39:57 GMT
Distribution: na
Organization: Center for Automation Research, Univ. of Md.
Lines: 23