Thanks everybody for the help, it is much appreciated! Using markdown to Latex (memoir) conversion gets me most of the way. One problem I have that I can't seem to figure out is that when I set \geometry{a5paper} the book is formatted for A5, but the physical paper size still seems to be Letter. How can I fix that? Thanks Gerd