(* ::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.                                                         *)
(************************************************************************)



If[FileType["ConciseFastKh.pdf"]===None || (
FileType["ConciseFastKh.pdf"] === File && OrderedQ[{FileDate["ConciseFastKh.pdf"], FileDate["ConciseFastKh.nb"]}]),
Print["Making ConciseFastKh.pdf & ConciseFastKh.png ..."];
nb=Join[
Get["ConciseFastKh.nb"],
Notebook[
PageFooters -> {{None,None,None},{None,None,None}},
PageHeaders -> {{None,None,None},{None,None,None}},
PrintingOptions -> {
"PrintingMargins"->{{0,0},{5,5}},
"EmbedStandardPostScriptFonts"->False
},
StyleDefinitions->Notebook[{
Cell[StyleData[StyleDefinitions->"Default.nb"]],
Cell[
StyleData[All,"Printout"],
ShowSyntaxStyles->True,
Magnification->0.8
]
}]
]];
Export["ConciseFastKh.pdf", nb];
pages=ImageCrop /@ Take[Import["ConciseFastKh.pdf"], 2];
dims=Max/@Transpose[ImageDimensions/@pages];
image=ImageAssemble[pages/.x_Image:>ImageCrop[x,dims,Padding->Automatic]];
Export["ConciseFastKh.png", image];
];



