How publishing really works