Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
238 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
digraph gamebook { | ||
1->4 | ||
1->3 | ||
3->2 | ||
4->3 | ||
4->2 | ||
4->1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"title" : "Paged Option", | ||
"nr_sections" : "4", | ||
|
||
"Introduction" : { | ||
"intro" : true, | ||
"text" : ["" ," This gamebook is formatted with the ", "paged" | ||
," option. Every section should begin at the top of a new page. Not the introsections though. "] | ||
}, | ||
|
||
"Another Heading" : { | ||
"intro" : true, | ||
"text" : ["" ," This is another introsection, just to confirm that it is not cause a new page-break. "] | ||
}, | ||
|
||
"Formats" : { | ||
"intro" : true, | ||
"text" : ["" ," Only some formats support page-breaks. HTML for instance currently does not (although it is technically possible to add it using print stylesheets). "] | ||
}, | ||
|
||
"sections" : {"IGNORE-debug-json-padding-IGNORE" : "", "start" : { | ||
"nr" : 1, | ||
"text" : ["" ," First section. You can go to ",{"reference" : "4"}," or ",{"reference" : "3"}," from here. "] | ||
} | ||
, "end" : { | ||
"nr" : 2, | ||
"text" : ["" ," This is The End. "] | ||
} | ||
, "third" : { | ||
"nr" : 3, | ||
"text" : ["" ," This is the third section. It might or might not be numbered 3 though, because of the automatic section numbering in gamebookformat. You can go on to the end at ",{"reference" : "2"},". "] | ||
} | ||
, "second" : { | ||
"nr" : 4, | ||
"text" : ["" ," This is the second section. Yay. You can go on to ",{"reference" : "3"}," or ",{"reference" : "2"}," or back to ",{"reference" : "1"},". "] | ||
} | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210 | ||
\cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} | ||
{\colortbl;\red255\green255\blue255;} | ||
\paperw11900\paperh16840\margl1440\margr1440\vieww14140\viewh14860\viewkind0 | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\f0\b\fs24 \cf0 Paged Option | ||
\b0 \ | ||
\ | ||
|
||
\b Introduction | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 This gamebook is formatted with the paged option. Every section should begin at the top of a new page. Not the introsections though. \ | ||
\ | ||
\ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\b \cf0 Another Heading | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 This is another introsection, just to confirm that it is not cause a new page-break. \ | ||
\ | ||
\ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\b \cf0 Formats | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 Only some formats support page-breaks. HTML for instance currently does not (although it is technically possible to add it using print stylesheets). \ | ||
\ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
|
||
\b \cf0 Turn to 1 to begin. | ||
\b0 \ | ||
\ | ||
\page \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\b \cf0 1 | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 First section. You can go to | ||
\b 4 | ||
\b0 or | ||
\b 3 | ||
\b0 from here. \ | ||
\ | ||
\page \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\b \cf0 2 | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 This is The End. \ | ||
\ | ||
\page \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\b \cf0 3 | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 This is the third section. It might or might not be numbered 3 though, because of the automatic section numbering in gamebookformat. You can go on to the end at | ||
\b 2 | ||
\b0 . \ | ||
\ | ||
\page \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc | ||
|
||
\b \cf0 4 | ||
\b0 \ | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
\cf0 This is the second section. Yay. You can go on to | ||
\b 3 | ||
\b0 or | ||
\b 2 | ||
\b0 or back to | ||
\b 1 | ||
\b0 . \ | ||
\ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
\documentclass[a5paper,onecolumn]{book} | ||
|
||
\usepackage[utf8]{inputenc} | ||
\usepackage[T1]{fontenc} | ||
\usepackage[hidelinks]{hyperref} | ||
\usepackage{graphicx} | ||
|
||
\usepackage[top=3.3cm, bottom=3.3cm, left=2cm, right=2cm]{geometry} | ||
\newif\ifpdf | ||
\ifx\pdfoutput\undefined | ||
\pdffalse | ||
\else | ||
\ifnum\pdfoutput=1 | ||
\pdftrue | ||
\else | ||
\pdffalse | ||
\fi | ||
\fi | ||
|
||
\title{Paged Option} | ||
\author{} | ||
\date{} | ||
|
||
\newcounter{sectionnr} | ||
|
||
\begin{document} | ||
|
||
\maketitle | ||
|
||
\clearpage | ||
|
||
\thispagestyle{empty} | ||
|
||
\pagestyle{empty} | ||
\subsection*{\begin{center} \textbf{Introduction} \end{center}} | ||
|
||
|
||
\noindent | ||
This gamebook is formatted with the paged option. Every section should begin at the top of a new page. Not the introsections though. | ||
\vspace{1em} | ||
\subsection*{\begin{center} \textbf{Another Heading} \end{center}} | ||
|
||
|
||
\noindent | ||
This is another introsection, just to confirm that it is not cause a new page-break. | ||
\vspace{1em} | ||
\subsection*{\begin{center} \textbf{Formats} \end{center}} | ||
|
||
|
||
\noindent | ||
Only some formats support page-breaks. HTML for instance currently does not (although it is technically possible to add it using print stylesheets). | ||
\vspace{1em} | ||
|
||
Turn to 1 to begin. | ||
\clearpage | ||
\phantomsection | ||
\refstepcounter{sectionnr} | ||
\label{section1} | ||
\subsection*{\begin{center} \textbf{1} \end{center}} | ||
|
||
\noindent | ||
First section. You can go to \textbf{\autoref{section4}} or \textbf{\autoref{section3}} from here. | ||
\vspace{1em} | ||
\clearpage | ||
\phantomsection | ||
\refstepcounter{sectionnr} | ||
\label{section2} | ||
\subsection*{\begin{center} \textbf{2} \end{center}} | ||
|
||
\noindent | ||
This is The End. | ||
\vspace{1em} | ||
\clearpage | ||
\phantomsection | ||
\refstepcounter{sectionnr} | ||
\label{section3} | ||
\subsection*{\begin{center} \textbf{3} \end{center}} | ||
|
||
\noindent | ||
This is the third section. It might or might not be numbered 3 though, because of the automatic section numbering in gamebookformat. You can go on to the end at \textbf{\autoref{section2}}. | ||
\vspace{1em} | ||
\clearpage | ||
\phantomsection | ||
\refstepcounter{sectionnr} | ||
\label{section4} | ||
\subsection*{\begin{center} \textbf{4} \end{center}} | ||
|
||
\noindent | ||
This is the second section. Yay. You can go on to \textbf{\autoref{section3}} or \textbf{\autoref{section2}} or back to \textbf{\autoref{section1}}. | ||
\vspace{1em} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Paged Option | ||
|
||
Introduction | ||
This gamebook is formatted with the paged option. Every section should begin at the top of a new page. Not the introsections though. | ||
|
||
Another Heading | ||
This is another introsection, just to confirm that it is not cause a new page-break. | ||
|
||
Formats | ||
Only some formats support page-breaks. HTML for instance currently does not (although it is technically possible to add it using print stylesheets). | ||
|
||
|
||
Turn to 1 to begin. | ||
1 | ||
First section. You can go to 4 or 3 from here. | ||
|
||
2 | ||
This is The End. | ||
|
||
3 | ||
This is the third section. It might or might not be numbered 3 though, because of the automatic section numbering in gamebookformat. You can go on to the end at 2. | ||
|
||
4 | ||
This is the second section. Yay. You can go on to 3 or 2 or back to 1. | ||
|