On Tue, Jul 15 2008, John Devereux wrote:
> 
> Is there a way to automatically "highlight changes" to a document,
> such that the resulting PDF has markers showing changed areas? Bars in
> the margin or some such. Or more generally some other way to easily
> communicate what has been changed (other than a diff on the source).

I'm sorry, this _is_ a diff on the source:

http://archive.contextgarden.net/message/20060806.143457.47021821.en.html

But the result can be quite nice.


I've also a module, that makes a table to communicate some changes to the
reader. It's attached. Typeset it with "texexec --mode=demo t-changes".

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
\ifx \iere  \undefined \def\iere  {\highordinalstr{re}}  \fi
\def\In[#1,#2]{\doifsomething{#1}{\in[#1]}\if\relax#2\else, \In[#2]\fi}
\enableregime[utf]

\unprotect
\newcount\RevC
\def\Changes[#1]{%
  [EMAIL PROTECTED], labels=, #1]% modif, labels, date
  [EMAIL PROTECTED]@modif{%
	  \translate[fr=1\iere\ version,en=First version,de=Erste Version]}}%
  \global\advance\RevC by 1 \bTR
  \expanded{\bTD \the\RevC \eTD}%
  \expanded{\bTD [EMAIL PROTECTED] \eTD}\expanded{\bTD [EMAIL PROTECTED] \eTD}%
  \expandafter\bTD [EMAIL PROTECTED],\relax]\eTD
  \eTR}

\def\startChanges{%
  \bTABLE[option=stretch, textwidth=\textwidth]
  \bTR[background=screen]
  \bTD \translate[fr=Rév, en=Rev, de=Rev].\eTD
  \bTD \translate[fr=Date, en=Date, de=Datum]\eTD
  \bTD \translate[fr=Origine de la mise à jour, en=Reason for update,
    de=Grund der Änderung]\eTD
  \bTD \translate[fr=§ modifié, en=modified §, de=mod. §en]\eTD\eTR}
\def\stopChanges{\eTABLE}

\protect

\doifnotmode{demo}{\endinput}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%D Usage example:

\usemodule[changes]
\setupcolors[state=start]
\starttext
\title{The big title}

\startChanges
\Changes[date=1.1.2001]
\Changes[date=2.2.2002, labels=sec:a, modif=Added text from Tufte]
\Changes[date=3.3.2003, labels=sec:b, modif=Added text from Knuth]
\Changes[date=4.4.2004, labels={sec:a,sec:b}, modif=Added even more text]
\stopChanges

\subject{Contents}
\placecontent

\section[sec:a]{First section}
\input tufte
more text

\section[sec:b]{Second section}
\input knuth
more text
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to