Re: [NTG-context] Highlight changes

2008-07-20 Thread John Devereux
Peter Münster [EMAIL PROTECTED] writes:

 On Sat, Jul 19 2008, John Devereux wrote:

 I am still finding errors in the result. Some of these are due to lines
 commented out with a leading % sign. In others parameter bracket
 nesting seems messed up.

 That's why there are these 2 lines:

 echo Starting editor, so you can manually improve the ConTeXt source.
 $EDITOR $OUT.tex

 In the normal case, you have to adjust only a few problems by hand.

OK, I will give it a go... 

 If you comment out normal text, because actually you want to delete it, but
 you don't really want to lose it forever, then consider using a version
 control system (subversion for example).

Good point and I am already doing that anyway. The other reason is to
quickly enable or disable something.

Thanks,

-- 

John Devereux
___
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
___


Re: [NTG-context] Highlight changes

2008-07-19 Thread Peter Münster
On Fri, Jul 18 2008, John Devereux wrote:

 Thanks, but this (your shell script) did not work well for me - there
 seem to be too many cases where the diff produces invalid tex
 code. Did you ever make an extended one?

Yes. It's attached.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/


typeset-diff.sh
Description: application/shellscript
___
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
___


Re: [NTG-context] Highlight changes

2008-07-19 Thread John Devereux
Peter Münster [EMAIL PROTECTED] writes:

 On Fri, Jul 18 2008, John Devereux wrote:

 Thanks, but this (your shell script) did not work well for me - there
 seem to be too many cases where the diff produces invalid tex
 code. Did you ever make an extended one?

 Yes. It's attached.
 Cheers, Peter

Thanks.

I am still finding errors in the result. Some of these are due to lines
commented out with a leading % sign. In others parameter bracket
nesting seems messed up.

I will play with it some more.

-- 

John Devereux
___
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
___


Re: [NTG-context] Highlight changes

2008-07-18 Thread John Devereux
Peter Münster [EMAIL PROTECTED] writes:

 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.

Thanks, but this (your shell script) did not work well for me - there
seem to be too many cases where the diff produces invalid tex
code. Did you ever make an extended one?

 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.

OK, thanks!


-- 

John Devereux
___
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
___


Re: [NTG-context] Highlight changes

2008-07-16 Thread Olivier Guéry
2008/7/15 John Devereux [EMAIL PROTECTED]:

 Hi,

 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).

In the same idear, i realy miss something to highlight the « overfull hbox »

Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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
___


[NTG-context] Highlight changes

2008-07-15 Thread John Devereux

Hi,

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).

-- 

John Devereux
___
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
___


Re: [NTG-context] Highlight changes

2008-07-15 Thread Peter Münster
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
___