This website is being built. Services described here are not yet available to order; the free tools work now. See what is ready.
SelfPublishingTool

Specialized book publishing

How to Format Choose-Your-Own-Path Gamebooks with Numbered Paragraphs

In July 1984 the British children’s book review Books for Keeps tried to explain a format that had appeared two years earlier and was already selling in large numbers. Puffin had launched The Warlock of Firetop Mountain in August 1982, and by mid-1984 the Fighting Fantasy series was “seven books strong” and had “sold over a million copies.”1 The reviewer described each book as “divided into numbered sections each of which ends with multi-choice options,” with “400 or so sections, each with a choice to make.”2 That description still identifies the core production problem for anyone who wants to publish a gamebook with numbered paragraphs today. The book is a network of short texts joined by references, and the layout has to keep every reference correct while the reader moves through the pages out of order.

This article sets out a production method for that kind of book. It covers how the numbered section separates the story from the page, why the branching map comes before the prose, how to shuffle sections and generate cross-references automatically, how to test the finished network for broken or unreachable sections, and what changes when the same book becomes an ebook. Platform rules are quoted as of November 2026.

The numbered section separates the story unit from the printed page

The earliest branching books tied each narrative unit to a page. The Choose Your Own Adventure series, which grew from Edward Packard’s manuscript Sugarcane Island and became “the first publishing effort of a new division at Bantam Books” in 1979, sent readers to page numbers.3 Chooseco, the series’ current publisher, states that the books sold “over 250 million copies worldwide” between 1979 and 1999, although the same page elsewhere gives a figure of “270 million” books in print, so the exact total is uncertain.4

Marco Arnaudo, in a 2023 framework for the study of gamebooks published in Analog Game Studies, traces the move away from one unit per page. He observes that “by far, the most common way” of labeling sections “has been to number each section sequentially,” and that Flying Buffalo’s Buffalo Castle of 1976 already placed several sections on a single page.5 Later lines adopted the practice: The Warlock of Firetop Mountain “packed 400 narrative sections in only 163 pages.”6

For a self-publisher, this distinction determines the layout approach. A page-linked book, in which each choice sends the reader to a page, forces the designer to fit each narrative unit to a page or a spread, and any reflow of text changes every target. A section-linked book lets text run continuously, with each section beginning wherever the previous one ends. The page count can change during editing without breaking a single reference, provided that the references point to section numbers rather than to page numbers. Most independent gamebook authors working at length will find the section-linked model easier to maintain, and the rest of this article assumes it.

The branching map is drafted before the prose

Ian Livingstone, co-founder of Fighting Fantasy, described the first task in writing Warlock in terms that are as much about production as about storytelling. “The important thing for us was to draw a map to keep track of the routes and encounters in the adventure,” he told Tabletop Gaming, “and keep a record of the paragraph numbers on a flowchart.”7 He also described the revisions that branching forces on a writer: “There’s a lot of going back and forth. For example, when I include a locked chest in a room, I have to go back in the story and put a key somewhere.”8

Arnaudo’s framework gives the author a vocabulary for planning that map. He classifies most gamebooks as one of three flowchart types or a hybrid of them.9 In a tree, most sections have a single incoming link and paths rarely reconverge, a form he associates with Choose Your Own Adventure. In a network, many sections can be reached from several others through loops and convergences, which suits mazes and open settings such as those in Fighting Fantasy and Fabled Lands, though networks are harder to keep consistent. In a “string of pearls,” local trees or networks converge at mandatory bottleneck sections, an arrangement he identifies in Lone Wolf and The Way of the Tiger.10

The choice of structure has direct formatting consequences. A tree grows quickly, because every branch multiplies the number of sections, and so a tree-structured book reaches a given page count with fewer interlocking references. A network or string of pearls produces sections with many incoming links, and each such section must be written so that it reads correctly whichever route brought the reader there. Arnaudo notes that keeping a consistent storyworld across paths is “the most common” approach “from the origin of the form to the present.”11 Every item, injury, or piece of knowledge that one route grants and another does not becomes a condition the text must check, often through phrases such as “if you have the brass key.” Those conditions are best recorded on the map before drafting, because they are the source of most later errors.

The scale of the map should also be planned. Arnaudo reports that Sorcery! (1985) contains 2,265 sections across four volumes and that Fabled Lands (1996) contains 4,366 sections across six; he also lists recent adult gamebooks with 1,300, 1,406, and 1,825 sections.12 At those sizes, a hand-drawn flowchart is a planning aid, but it cannot serve as the master record. The master record needs to be a file that software can read.

Sections are written in natural order and shuffled for print

Writers usually draft a branching story in the order they think of it: the opening, then the first choice and its consequences, and so on. Printing the sections in that order would place the outcome of a choice immediately after the choice, which lets a reader see the consequence of each option by glancing at the next number. Printed gamebooks therefore scatter the sections, and the scattering is a deliberate production step.

The LaTeX package Gamebooklib, maintained by Robert J. Lee on the Comprehensive TeX Archive Network (CTAN), is built around this step. Its description states that it lets an author “typeset a series of cross-referenced, numbered entries, shuffled into random order, to produce an interactive novel or gamebook,” and that “this allows entries to be written in natural order and shuffled automatically into a repeatable non-linear order.”13 As of November 2026, CTAN lists version 1.4, dated 28 July 2023, released under the LaTeX Project Public License 1.3.14

The word “repeatable” is important for any workflow, whatever the software. A shuffle that produces a new order every time the file is compiled would change every section number after each edit, so that proofreading notes, playtest reports, and errata keyed to section numbers would no longer match the text. A repeatable shuffle, generated from a fixed seed, keeps the numbers stable across rebuilds. The practical rule is to fix the numbering before playtesting begins and to change it only deliberately, with a record of the old and new numbers. Section 1 is conventionally left in place as the starting point, and authors often pin a few other sections, such as the final victory section, to chosen numbers.

Authors who do not use LaTeX can follow the same principle with a spreadsheet or a short script. Each section receives a permanent internal label (for example, “cellar-door” or “S047”), and the published number is assigned to that label in a separate table. The prose refers only to labels, and the numbers are substituted at the end. This separation of identity from display number is what makes a late renumbering safe.

Cross-references must be generated, never typed

The failure that most often damages gamebooks in production is a “turn to” instruction that points to the wrong section. Project Aon, the volunteer project that publishes free online editions of Joe Dever’s Lone Wolf series by permission, records an example from the series’ publishing history. Its FAQ notes that abridged print editions required sections to be renumbered, which “led to an increased number of broken section links.”15 The project now publishes “only complete, unabridged versions,” and its HTML format lets readers “jump to the appropriate section by clicking on a link within the text.”16

The lesson for print is that every reference to a section number should be a live field that the layout program updates, not a number typed into the text. In LaTeX, Gamebooklib handles the references along with the shuffle.17 In Adobe InDesign, the relevant feature is the cross-reference. In a thread on Adobe’s community forum, a user building a choose-your-own-adventure booklet reported that tracking paragraph numbers with text variables was slow, and other users recommended InDesign’s native cross-references, in which a bookmark or text anchor serves as the destination and the cross-reference as the source that refers to it dynamically.18 The same thread identified a limitation: InDesign does not easily place the current section number in a running head. Suggested workarounds included numbering the sections as a last manual step, a custom script that must be rerun after changes, a plugin, or Affinity Publisher, which the original poster found handled running heads and text variables more easily.19

Whatever the tool, the author should confirm three properties of the cross-reference system before committing a long manuscript to it. First, the system must update every reference when a section moves or is renumbered. Second, it must report references whose targets no longer exist, rather than silently printing a blank or a stale number. Third, it must survive export to PDF and, if an ebook is planned, to EPUB. Testing those properties on a 20-section sample costs an afternoon; discovering a failure at section 400 costs much more.

Typography should make the section number easy to find

A reader of a gamebook navigates by flipping pages in search of a number, so the section number functions as a heading and a finding aid at the same time. Several layout decisions follow from that function.

The number should be set clearly apart from the text, typically larger, bolder, or centered, with space above it. The choices that end a section should also be set consistently, whether as indented lines or as a short list, so that the reader can find the next number without rereading the prose. Conditional choices (“If you have a lantern, turn to 212”) are easier to parse when the condition comes first and the number last, in the same position each time.

Running heads that show the range of sections on each page, in the manner of guide words in a dictionary, are the most useful navigation aid in a long gamebook. They are also, as the Adobe thread shows, among the hardest elements to automate in some layout programs.20 An author who wants them should test the chosen program’s ability to pull the first and last section numbers on a page before designing around them.

Page breaks need rules as well. A section number should not be stranded at the foot of a page with its text on the next page, and a list of choices should be kept together where possible. Gamebooklib’s CTAN description notes a further complication: it provides “limited support” for footnotes, placing them at “the end of each entry, or the end of each page, whichever is closest to the footnote mark.”21 Because entries in a gamebook are read individually and out of order, a footnote that drifts away from its entry is more disorienting than in a linear book. Most gamebook authors avoid footnotes in sections altogether and move rules and reference material to the front matter.

The rules, character sheet, and front matter are part of the format

Many gamebooks attach a game system to the narrative. Books for Keeps described the Fighting Fantasy procedure in 1984: before play, the reader rolls dice to establish Skill, Stamina, and Luck and records them on an adventure sheet.22 Livingstone later named the design of such a system as one of the four challenges in creating Warlock: “we had to design a games system that was not too complicated and worked in book format.”23

In production terms, this means that the front matter of a gamebook carries more weight than in most fiction. It typically contains the rules, a worked example of play, and a blank record sheet. Readers use the sheet repeatedly, so authors commonly place it where it can be photocopied or provide a downloadable version, and the copyright page can state whether readers may copy the sheet for personal use. If the book uses dice, the rules should also say what a reader without dice can do instead, since some gamebooks print random-number tables or illustrated dice in the margins for that purpose.

The front matter should also state, in one sentence, that the sections are not meant to be read in order. Readers familiar with the form will skip it, but a reader new to gamebooks who begins at section 1 and reads straight on to section 2 will have a confusing first experience.

The finished network is tested as a graph before it goes to print

A gamebook can contain errors that no linear proofreading will find. Arnaudo describes one of them: a “locked room,” meaning a section with no incoming links.24 Some locked rooms are deliberate. He cites Kim Newman’s Life’s Lottery, which has 300 numbered sections, nine of them locked, as an example of an author hiding unreachable sections on purpose.25 In most books, however, a locked room is an editing error left behind when a choice was rewritten.

The following checks can be run mechanically on the master file, either with a script or with a spreadsheet that lists every section and every outgoing reference:

  1. Every reference points to a section that exists.
  2. Every section except the starting section has at least one incoming reference, unless it is a deliberate locked room.
  3. Every section either offers at least one choice or is marked as an ending.
  4. Every winning path can be completed, which means that any item the text requires (the key for Livingstone’s locked chest) can be obtained on some route that reaches the point where it is required.26
  5. Loops, which Arnaudo defines as links that bring “the reader back to a section that was (or could have been) visited previously,” are intended and do not trap the reader without an exit.27

The first three checks are purely structural and can be automated completely. The last two depend on game state and usually require playtesting, ideally by readers who did not write the book and who keep a record of the numbers they visit. Playtest notes should cite section numbers from the fixed shuffle, which is another reason to freeze the numbering before playtesting begins.

An ebook removes the flipping of pages but adds a different set of constraints. As of November 2026, Kindle Direct Publishing’s Hyperlink Guidelines state that “internal links can be used to link separate content within the book.”28 The same page draws a distinction that matters for gamebooks: footnotes require bi-directional hyperlinks, but “non-footnote links should use the format A links to B and B links to C instead.”29 A gamebook’s choices are non-footnote links, so each section should link forward to its targets, without return links that could trigger the pop-up behavior Amazon associates with footnotes. KDP also states that “internal hyperlinks are not currently supported on E-reader devices in fixed-layout books.”30 A gamebook in Kindle format should therefore be built as a reflowable ebook, not a fixed-layout one.

Shuffling serves less purpose in an ebook, since a reader who taps a link does not see the neighboring sections, but most publishers keep the print numbering so that both editions share errata, playtest records, and reader discussion. Rules and the adventure sheet need separate treatment, because a reader cannot write in an ebook. A printable PDF sheet offered on the author’s website, linked from the ebook’s front matter, is a common solution.

Gamebooks are again a viable category for independent publishers, and Arnaudo records evidence of reader demand for them: the gamebook Alba raised £272,794 from 10,301 backers on Kickstarter in 2022, and Chooseco reports that Choose Your Own Adventure has sold 16 million copies since 2006.31 Those figures describe particular projects and a particular brand, and they should not be read as a forecast for any individual book.

The formatting conventions described here developed in mass-market paperbacks of the 1980s. Arnaudo argues that gamebooks should be studied “on their own terms” rather than as imperfect versions of digital hypertext, and his framework suggests that the printed form has its own grammar of sections, links, loops, and endings.32 The open question for an independent author is how far to depart from that grammar. Readers raised on the classic series expect sequential section numbers, a shuffled order, and an adventure sheet in the front, and a book that meets those expectations will be easier to play. A book that breaks them deliberately, through page-based links, locked rooms, or a structure the reader must reconstruct, can be rewarding, but it needs the same structural testing and a front matter that explains the departure.

Platform rules, fees and laws change. Facts in this guide are dated to when they were checked; confirm current terms with the platform or authority before relying on them. Nothing here is legal, tax or financial advice.

More guides Free publishing tools