A Theory of Publishing