The Great God Pan
What is now the first chapter of the novella was published in 1890 in a magazine called "The Whirlwind", while what is now the third chapter of the book was published in the same magazine the following year as a standalone short story called "The City of Resurrections". Machen only viewed the two works as connected after they were finished. Once he decided the two stories were connected, Machen wrote the rest of "The Great God Pan" in a single evening save for its final chapter. Machen did not think of an ending for the tale for months, and in that time believed that the novella would remain unfinished forever. The last chapter was completed in June 1891. Machen sent the novella to the publisher Blackwood, who rejected it, deeming it a clever story that "shrink[s]...from the central idea." It was accepted by John Lane and published in 1894. When published as a book, "The Great God Pan" was accompanied by another Machen tale called "The Inmost Light" which also features a mad scientist and elements of science fiction. The book's cover was illustrated by Aubrey Beardsley.
Father Goose: His Book
When the two men sought out a publisher for their book, they settled with the George M. Hill Co. In uniting Baum, Denslow, and Hill, "Father Goose" mustered the forces that would produce "The Wonderful Wizard of Oz" in the following year. Hill, however, was not prepared to risk much money on the two untried collaborators; their original deal required Baum and Denslow to pay for the full costs of printing the book. Subsequently, Hill invested some funds in the project: Baum and Denslow paid for all the artistic aspects of the book, including printing the color plates and cover and even the advertising, while Hill took responsibility for the paper, binding, and distribution costs.