Method and apparatus for producing stacks which form book blocks