From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42469 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: Highlight changes Date: Tue, 15 Jul 2008 21:55:14 +0200 Message-ID: <20080715195514.GA20338@gaston.couberia.bzh> References: <87tzer0ylk.fsf@cordelia.devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="rS8CxjVDS/+yyDmU" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216151818 18133 80.91.229.12 (15 Jul 2008 19:56:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 19:56:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 15 21:57:46 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KIqef-0001eN-SQ for gctc-ntg-context-518@m.gmane.org; Tue, 15 Jul 2008 21:57:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA7ED1FC98; Tue, 15 Jul 2008 21:56:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20819-01-5; Tue, 15 Jul 2008 21:55:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F35D1FBCB; Tue, 15 Jul 2008 21:55:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A4C441FC07 for ; Tue, 15 Jul 2008 21:55:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18188-02-2 for ; Tue, 15 Jul 2008 21:55:15 +0200 (CEST) Original-Received: from smtp2a.orange.fr (smtp2a.orange.fr [80.12.242.140]) by ronja.ntg.nl (Postfix) with ESMTP id A6A481FB77 for ; Tue, 15 Jul 2008 21:55:15 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2a16.orange.fr (SMTP Server) with ESMTP id 78C8B70000A6 for ; Tue, 15 Jul 2008 21:55:15 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-358-1-5-218.w90-49.abo.wanadoo.fr [90.49.216.218]) by mwinf2a16.orange.fr (SMTP Server) with ESMTP id 3C72D7000098 for ; Tue, 15 Jul 2008 21:55:15 +0200 (CEST) X-ME-UUID: 20080715195515247.3C72D7000098@mwinf2a16.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id A95B7301AF; Tue, 15 Jul 2008 21:55:14 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <87tzer0ylk.fsf@cordelia.devereux.me.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42469 Archived-At: --rS8CxjVDS/+yyDmU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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/ --rS8CxjVDS/+yyDmU Content-Type: text/x-tex; charset=utf-8 Content-Disposition: attachment; filename="t-changes.tex" Content-Transfer-Encoding: quoted-printable \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]{% \getgparameters[Changes@][date=3D, labels=3D, #1]% modif, labels, date \doifundefined{Changes@modif}{\gdef\Changes@modif{% \translate[fr=3D1\iere\ version,en=3DFirst version,de=3DErste Version]= }}% \global\advance\RevC by 1 \bTR \expanded{\bTD \the\RevC \eTD}% \expanded{\bTD \Changes@date \eTD}\expanded{\bTD \Changes@modif \eTD}% \expandafter\bTD \expandafter\In\expandafter[\Changes@labels,\relax]\eT= D \eTR} \def\startChanges{% \bTABLE[option=3Dstretch, textwidth=3D\textwidth] \bTR[background=3Dscreen] \bTD \translate[fr=3DR=C3=A9v, en=3DRev, de=3DRev].\eTD \bTD \translate[fr=3DDate, en=3DDate, de=3DDatum]\eTD \bTD \translate[fr=3DOrigine de la mise =C3=A0 jour, en=3DReason for up= date, de=3DGrund der =C3=84nderung]\eTD \bTD \translate[fr=3D=C2=A7 modifi=C3=A9, en=3Dmodified =C2=A7, de=3Dmo= d. =C2=A7en]\eTD\eTR} \def\stopChanges{\eTABLE} \protect \doifnotmode{demo}{\endinput} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %D Usage example: \usemodule[changes] \setupcolors[state=3Dstart] \starttext \title{The big title} \startChanges \Changes[date=3D1.1.2001] \Changes[date=3D2.2.2002, labels=3Dsec:a, modif=3DAdded text from Tufte] \Changes[date=3D3.3.2003, labels=3Dsec:b, modif=3DAdded text from Knuth] \Changes[date=3D4.4.2004, labels=3D{sec:a,sec:b}, modif=3DAdded 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 --rS8CxjVDS/+yyDmU Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --rS8CxjVDS/+yyDmU--