PrintMulti: Example of alternating copies Simplex

Many users want copies to be printed alternately from different trays, as was the case with carbon copies, i.e.:
Page 1 Tray 1, Page 1 Tray 2, Page 2 Tray 1, Page 2 Tray 2....

This is currently not possible by conventional means, but with a small extension in version 2.0.0.1 there is a workaround ("AllowRecursion") that allows nested PrintMulti printers.

This example only works with one-sided printing.

[Common]
...
AllowRecursion=true

[PrintMakeCopies]
Printer=PrintMulti Color1
TotalCopies=2
DrvCopies=1
Collate=0

[PrintMulti Color]
Active=1
ActionCopies=Print;PrintMakeCopies

[PrintMulti Color1]
Active=1
ActionPrint=Print;AlternateBins

[Bins]
0=Tray 1
1=Tray 2

[AlternateBins]
Printer=TestPrinter
PaperSource=$(;Bins;#n;1;-;2;mod;0;tbllookup)

The example is based on the fact that there are two PrintMulti printers. 
The first "PrintMulti Color" contains an action that creates a copy of each page. It is important that DrvCopies=1 is set. This causes PrintMulti to reprint the page and not rely on the printer driver.
The output is then the second PrintMulti printer "PrintMulti Color1".

This uses the modulo operator with the page number (which starts at 1, so one more is subtracted) to select alternating input compartments.

You can of course create more than one copy in this way by adjusting some parameters.