Functionality for eg 20-page signatures imposed quarto.
Vague ramblings on how it could function:
input as decimal into same box as always (potential for error, esp with 6 per side and the other wacky small layouts)
have a tickbox for "Partial Sheet Signatures (quarto and smaller only!)" and then input either:
-- number of pages per signature (potential for error if not a multiple of 4)
-- number of physical layers of paper per signature (effectively treating it like a standard a5/half-letter book, advantage that the correct input is any integer, so no room for error on decimals or multiples of 4) <- this option probably best
In terms of pseudo-code functioning (as I do not know js, I think this is the order in which it does things but I'm not 100% sure I've got it right) (n is number of pages per sheet, p is pages per signature = 0mod4)
do the thing that splits the doc into signatures with p pages
x = math.ceiling(p/n) * n - p (x will also be 0mod4)
add x/2 blank pages to each end of the signature
rearrange and impose as normal?
this should give x/4 blank pieces of paper on the outside of the signature once folded and cut
in terms of error margins when dividing, currently 4/60 (0.0666) is the minimum step, so an accidental full-sheet signature number should be fine if error is 1e-2 or lower. Alternatively there should be a way of calculating x without dividing (Python equiv below)
Functionality for eg 20-page signatures imposed quarto.
Vague ramblings on how it could function:
In terms of pseudo-code functioning (as I do not know js, I think this is the order in which it does things but I'm not 100% sure I've got it right) (n is number of pages per sheet, p is pages per signature = 0mod4)
x = math.ceiling(p/n) * n - p
(x will also be 0mod4)this should give x/4 blank pieces of paper on the outside of the signature once folded and cut in terms of error margins when dividing, currently 4/60 (0.0666) is the minimum step, so an accidental full-sheet signature number should be fine if error is 1e-2 or lower. Alternatively there should be a way of calculating x without dividing (Python equiv below)