I would start by writing it in whatever software you find most conducive to long writing and editing sessions (be that MS Word, Dark Room, Scrivener, or a programmer’s text editor).
Then convert it to the format you want to use for formatting and layout.
Then convert it to the format you want to use for formatting and layout.