(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



SetDirectory["C:\\drorbn\\AcademicPensieve\\2014-06\\UnitarityOfGassner"]


FT[f_String]:=AbsoluteTime@FileDate@f;
If[!TrueQ[And[
FT@"UnitarityOfGassnerDemo.pdf" > FT@"nb/UnitarityOfGassnerDemo.pdf"
]],
cl="C:\\bin\\cpdf.exe -compress nb/UnitarityOfGassnerDemo.pdf -o UnitarityOfGassnerDemo.pdf";
Print["2014-06/UnitarityOfGassner: Running ",cl," ..."];
Run[cl];
]


target = "UofG";
sources = {"UofG.tex", "B.pdf", "R3.pdf", "UnitarityOfGassnerDemo.pdf"};
If[FileType[target<>".zip"]===None || (
FileType[target<>".zip"] === File && OrderedQ[{FileDate[target<>".zip"], Sort[FileDate /@ sources]  // Last}]),
Print["Making ",target,".zip..."];
If[
FileType[target] === Directory,
DeleteDirectory[target, DeleteContents->True]
];
dir=CreateDirectory[target];
CopyFile[# , FileNameJoin[{dir, #}]]& /@ sources;
If[FileType[target<>".zip"] === File, DeleteFile[target<>".zip"]];
CreateArchive[dir, target<>".zip"];
DeleteDirectory[target, DeleteContents->True];
];


(*
SetDirectory["C:\\drorbn\\AcademicPensieve\\2014-06\\UnitarityOfGassner"];
FT[f_String]:=AbsoluteTime@FileDate@f;
If[!TrueQ[And[
FT@"UnitarityOfGassnerFull.pdf" > FT@"UnitarityOfGassner.pdf",
FT@"UnitarityOfGassnerFull.pdf" > FT@"nb/UnitarityOfGassnerDemo.pdf"
]],
cl="C:\\bin\\cpdf.exe UnitarityOfGassner.pdf nb/UnitarityOfGassnerDemo.pdf -o UnitarityOfGassnerFull.pdf";
Print["2014-06/UnitarityOfGassner: Running ",cl," ..."];
Run[cl];
]
*)


target = "UofG-CSU";
sources = {"UofG-CSU.tex", "B.pdf", "R3.pdf"};
If[FileType[target<>".zip"]===None || (
FileType[target<>".zip"] === File && OrderedQ[{FileDate[target<>".zip"], Sort[FileDate /@ sources]  // Last}]),
Print["Making ",target,".zip..."];
If[
FileType[target] === Directory,
DeleteDirectory[target, DeleteContents->True]
];
dir=CreateDirectory[target];
CopyFile[# , FileNameJoin[{dir, #}]]& /@ sources;
If[FileType[target<>".zip"] === File, DeleteFile[target<>".zip"]];
CreateArchive[dir, target<>".zip"];
DeleteDirectory[target, DeleteContents->True];
];


{
"TitleNotes" -> "<div style=\"clear: right; float: right; padding: 8px; width: 400px;\"><img src=logo.png></div>This is the construction page for my paper <b>A Note on the Unitarity Property of the Gassner Invariant</b> (<a href=UofG.pdf>PDF here</a>). <p><b>Abstract.</b> We give a 3-page description of the Gassner invariant / representation of braids / pure braids, along with a description and a proof of its unitarity property.\n<p>"
}
