Textallion

From IFWiki

The goal of textallion is to use txt2tags as a preprocesseur, and keep its non-distracting formating marks, while being able to export easily into LaTeX (and then PDF) and html (and then ePub). Txt2tags can already export to LaTeX, but there is little control on the output.

By default, textallion will have all that is needed for writing a simple and nice looking book, roman:

Export to other game formats

The export from textallion will recreate your paragraphs and your choices in the format used by renpy, generating a working folder containing everything you need to read later from renpy. You should then move that folder into renpy's workspace default to work further on this project (including addition of multimedia documents, images, sounds ...). Please note that the command make cyoa-renpy will completely destroy the original folder and replace it with a new one. So if you intend to add new elements in the code, you can either change the makefile accordingly, or move the folder elsewhere as indicated above.

To mean the end of a game, any occurrence of "THE END" will move the player to the end of the file, stopping the game.
The inclusion of images will be converted to the renpy format, and on each page, the background image will overlap the images already posted. To hide the images properly, although this is not an obligation, it is advisable to add $ hidemypic ("my_image.jpg") at the end of the paragraph after the use of a given image.

The output file will be yourgame.i7. Then convert it to zcode (.z5) using Inform7.

You may have to tweak a bit the source before being able to compile it in Inform, for example remove the "Page0" lines. Texts such as "So it will lead you to the 14" will be converted to "So it will lead you to the ****", you'll probably want to edit this as well (you can just replace it to ...).

Twee (code) is a format gamebook usable on the Internet, based on TiddlyWiki. make cyoa-twee will export to this format.

Undum is a system from creating gamebook usable on the Internet. make cyoa-undum will export to this format.

ChoiceScript is a system from creating gamebook usable on the Internet. make cyoa-choicescript or make cyoa-cs will export to this format.