Berkeley CSUA MOTD:Entry 24101
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2002/3/13-15 [Uncategorized] UID:24101 Activity:high
3/13    I'm writing a program called diff_tex which takes 2 tex files,
        OLD and NEW, and produces a version of NEW with changes
        highlighted in some manner.  At first I tried putting
        \begin{bf} and \end{bf} enclosing lines where changes had
        occured but this can cause problems inside equation, align,
        or tabbing environments.  Does anyone know of a way to highlight
        something (bold, italics, red, whatever) such that it will work
        in most latex environments?  Thanks. -emin
           \- i am not sure what you are setting out to accomplish but i am
              not sure it is feasible. i mean tex can be a full blown
              language and just looking at text diff probably wont cut it.
              e.g. if macro are redefined etc. --psb
        \_ put boxes around it?
           \_ Do you mean with \fbox?  The \fbox command seems even less
              robust than other things like \begin{bf} ... \end{bf}.
              Are there tricks for making \fbox robust?  Thanks. -emin
        \_ I think green boxes with reddish brown flowers on a bed of darker
           green grass or maybe clovers....
           \_ We started out with boxes but they're too much work. We've settled
              on good old fashioned, herbicide-sucking turf.
           \_ We started out with boxes but they're too much work. We've
              settled on good old fashioned, herbicide-sucking turf.
              \_ Maybe a nice red brick pathway lined by dasies would put the
                 right touch to it.
                 \_ Hmmm. That's not a bad idea. We'll just have be careful not
                    to mow the flowers when we mow the lawn.  Maybe putting in a
                    wire border high enough to stop the fender...
                    \_ Well the flowers go "back" a bit from the edge so it'll
                       be hard to mow the flowers by mistake.  You only need
                       about 6 inches of clearance between the edge and the
                       plants.  Good luck with it!  Post pics when you're done.
              \_ I don't know any tricks for \fbox.  What if you just
                 delimited all changes with special characters?
                 e.g. ***** something that was changed ******