MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Comparing side by side notebook files



Here is a simple attempt:

Notebookdiff::usage="Notebookdiff[file1, file2] returns a notebook with
all Cells of the notebook saved as file2 which are not in the notebook
saved as file1.";

Notebookdiff[fi1_String, fi2_String] := Block[{x, y, diff},
 {x, y} = (Get /@ {fi1, fi2}) //. Cell[CellGroupData[z_,_]] :>z /.
  (CellLabel->_) :> Sequence[] ;
     Prepend[Rest[x], Complement[Flatten[First[y]], Flatten[First[x]]]]
];


Rolf Mertig
Mertig Research & Consulting  
Mathematica training and programming Development and distribution of
FeynCalc  Amsterdam, The Netherlands
http://www.mertig.com  



  • Prev by Date: Re: list assignment problem
  • Next by Date: Re: list assignment problem
  • Prev by thread: Re: Comparing side by side notebook files
  • Next by thread: equation-entering annoyance