Pensieve header: Make the snip files in Cnips/.

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

Prolog

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

SL2Invariant Snips

MakeSnips[nb_] := (
If[Head[$FrontEnd]===FrontEndObject,
SetOptions[CellExport, ExportFormat -> ".pdf", Split -> True, PageWidth -> 7.12, ExportOptions -> {ImageSize->Scaled[0.75]}],
SetOptions[CellExport, ExportFormat -> ".pdf", Split -> True, PageWidth -> 7.12]
];
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 -> "Cnips/817-In"}],
Sow@CellExport[SourceNotebook, "817", {CellFilter -> Rest, ExportBaseFilename -> "Cnips/817-Out", PageWidth -> 5.5*0.24/0.16}]
},
MemberQ[DialogTags, tag], {
Sow@CellExport[SourceNotebook, tag, {CellFilter -> First, ExportBaseFilename -> "Cnips/"<>tag<>"-In"}],
Sow@CellExport[SourceNotebook, tag, {CellFilter -> Rest, ExportBaseFilename -> "Cnips/"<>tag<>"-Out"}]
},
True, Sow@CellExport[SourceNotebook, tag, ExportBaseFilename -> "Cnips/"<>tag]
],
{tag, tags}]]];
PutAppend[DateString[], "Cnips/Verification.txt"];
Sort@Flatten[files]
)

Epilog

End[]; EndPackage[];