mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-07-01 06:05:11 +03:00
88 lines
2.2 KiB
TeX
88 lines
2.2 KiB
TeX
\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{Title of Game}
|
|
\author{Your Name}
|
|
\date{}
|
|
|
|
\newcounter{sectionnr}
|
|
|
|
\begin{document}
|
|
|
|
\maketitle
|
|
|
|
\thispagestyle{empty}
|
|
|
|
\pagestyle{empty}
|
|
|
|
\clearpage
|
|
|
|
\subsection*{\begin{center} \textbf{Introduction} \end{center}}
|
|
|
|
|
|
\noindent
|
|
For information that goes before the actual numbered sections, if needed.
|
|
\vspace{1em}
|
|
\subsection*{\begin{center} \textbf{More Introduction} \end{center}}
|
|
|
|
|
|
\noindent
|
|
Any number of these optional pre-game sections are possible really. It would be useful to be able to do sub-sections here to mark up a complete rulebook as part of the paragraph booklet, but there is no such feature (yet?).
|
|
\vspace{1em}
|
|
|
|
|
|
Turn to 1 to begin.
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section1}
|
|
\subsection*{\begin{center} \textbf{1} \end{center}}
|
|
|
|
\noindent
|
|
This is the first section (or paragraph, if you prefer). From here you can go to section \textbf{\autoref{section4}} or \textbf{\autoref{section3}}.
|
|
\vspace{1em}
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section2}
|
|
\subsection*{\begin{center} \textbf{2} \end{center}}
|
|
|
|
\noindent
|
|
This is the end. There is nothing more in this gamebook.
|
|
\vspace{1em}
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section3}
|
|
\subsection*{\begin{center} \textbf{3} \end{center}}
|
|
|
|
\noindent
|
|
Third section. Again, its number is not known. You can go to the end at \textbf{\autoref{section2}}. This section has an image to show the syntax for doing that (same as images in bgg forums really). \begin{center}
|
|
\includegraphics[width=.9\textwidth]{testimage.png}
|
|
\end{center}
|
|
|
|
|
|
\vspace{1em}
|
|
\phantomsection
|
|
\refstepcounter{sectionnr}
|
|
\label{section4}
|
|
\subsection*{\begin{center} \textbf{4} \end{center}}
|
|
|
|
\noindent
|
|
This is the second section. It may or may not end up with number 2 in the generated gamebook. From here you can skip to the \textbf{\autoref{section2}} or go to the third section at \textbf{\autoref{section3}}.
|
|
\vspace{1em}
|
|
\end{document}
|