Pensieve header: Make the snip files in Snips/.

files=(f1=Union@MakeSnips["ZipBindDemo.nb"])⋃(f2=Union@MakeSnips["SL2Portfolio.nb"]);
DeleteFile /@ Complement[StringReplace["\\"->"/"]/@FileNames["Snips/*.pdf"], files];
Length /@ {f1,f2}

Prolog

SetDirectory["C:\\drorbn\\AcademicPensieve\\Talks/Matemale-1804"];
BeginPackage["Snips`", {"CellExport`"}];
MakeSnips;
Begin["`private`"];
SetOptions[$FrontEndSession,PrintingStyleEnvironment->"Working"];

SL2PortfolioProgram Snips

MakeSnips[nb_] := (
If[Head[$FrontEnd]===FrontEndObject,
SetOptions[CellExport, ExportFormat -> ".pdf", Split -> True, PageWidth -> 7.2, ExportOptions -> {ImageSize->Scaled[0.75]}],
SetOptions[CellExport, ExportFormat -> ".pdf", Split -> True, PageWidth -> 7.2]
];
SourceNotebook = Get[nb];
DialogTags={};
tags=Cases[SourceNotebook, (CellTags->tag_) :> tag, Infinity ] // Union;
files=Reap[Flatten[Table[
Which[
tag=="817", { (* this is only left here as a demo for how to make an exception *)
Sow@CellExport[SourceNotebook, "817", {CellFilter -> First, ExportBaseFilename -> "Snips/817-In"}],
Sow@CellExport[SourceNotebook, "817", {CellFilter -> Rest, ExportBaseFilename -> "Snips/817-Out", PageWidth -> 5.5*0.24/0.16}]
},
MemberQ[DialogTags, tag], {
Sow@CellExport[SourceNotebook, tag, {CellFilter -> First, ExportBaseFilename -> "Snips/"<>tag<>"-In"}],
Sow@CellExport[SourceNotebook, tag, {CellFilter -> Rest, ExportBaseFilename -> "Snips/"<>tag<>"-Out"}]
},
True, Sow@CellExport[SourceNotebook, tag, ExportBaseFilename -> "Snips/"<>tag]
],
{tag, tags}]]];
PutAppend[DateString[], "Snips/Verification.txt"];
Sort@Flatten[files]
)

Epilog

End[]; EndPackage[];