mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-06-17 07:30:43 +03:00
Templates for footnotes in gamebooks.
Only rendered well in LaTeX (PDF). Just shown in parenthesis in other formats. Should be possible, I think, to render in RTF as well, and HTML probably. Only needed them for PDF output at the moment though.
This commit is contained in:
parent
275294ea6b
commit
213008aa2b
|
@ -12,6 +12,7 @@ with the gamebook sections below.
|
|||
|
||||
= Another Heading
|
||||
This starts another non-shuffled section.
|
||||
[footnote]A footnote in Another Heading.[/footnote]
|
||||
|
||||
* 1 start
|
||||
This examples tests gamebook formatting, not so much game mechanics or
|
||||
|
@ -23,7 +24,7 @@ You can make named references [[named1][like this]] (just happens
|
|||
to be exactly the same syntax as in emacs org-mode btw).
|
||||
There should be an image below as well.
|
||||
If something broke, turn to [[bad]],
|
||||
otherwise turn to [[good]].
|
||||
otherwise turn to [[good]].[footnote]Good footnote.[/footnote]
|
||||
[img]testimage.png[/img]
|
||||
|
||||
* dum :dummy:
|
||||
|
@ -37,7 +38,7 @@ From here you can go to [[named2][the second named section]] or
|
|||
to the [[good][good end]].
|
||||
|
||||
* named2
|
||||
Very good. [[good][You win]].
|
||||
Very good. [[good][You win]].[footnote]Win footnote.[/footnote]
|
||||
|
||||
* good
|
||||
Good!
|
||||
|
|
|
@ -4,14 +4,14 @@ Number of sections: 6
|
|||
Introduction
|
||||
Adding an introduction to the gamebook here. This will create a section, but it will not be shuffled nor numbered with the gamebook sections below.
|
||||
Another Heading
|
||||
This starts another non-shuffled section.
|
||||
This starts another non-shuffled section. [FOOTNOTE]A footnote in Another Heading.[/FOOTNOTE]
|
||||
|
||||
|
||||
Adventure begins in section 1.
|
||||
1 (start) - This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references like this (5) (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to 2, otherwise turn to 3. [IMG]testimage.png[/IMG]
|
||||
1 (start) - This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references like this (5) (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to 2, otherwise turn to 3.[FOOTNOTE]Good footnote.[/FOOTNOTE] [IMG]testimage.png[/IMG]
|
||||
2 (bad) - Bad.
|
||||
3 (good) - Good!
|
||||
4 (named2) - Very good. You win (3).
|
||||
4 (named2) - Very good. You win (3).[FOOTNOTE]Win footnote.[/FOOTNOTE]
|
||||
5 (named1) - This is where you should end up when you follow the named reference from the starting section. From here you can go to the second named section (4) or to the good end (3).
|
||||
6 () - (EMPTY)
|
||||
END DEBUG OUTPUT
|
||||
|
|
|
@ -3,7 +3,7 @@ digraph gamebook {
|
|||
1->5
|
||||
1->2
|
||||
1->3
|
||||
4->3
|
||||
5->4
|
||||
4->3
|
||||
5->4
|
||||
5->3
|
||||
}
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
<div class="introsection">
|
||||
<div class="introsectionheading">Another Heading</div>
|
||||
<div class="introsectionbody">
|
||||
This starts another non-shuffled section.
|
||||
This starts another non-shuffled section. (A footnote in Another Heading.)
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -50,7 +51,8 @@
|
|||
This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references <a class="sectionref enabledlink" data-ref="5"
|
||||
href="#section5">like this</a> (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to <a class="sectionref enabledlink" data-ref="2"
|
||||
href="#section2">2</a>, otherwise turn to <a class="sectionref enabledlink" data-ref="3"
|
||||
href="#section3">3</a>. <img src="testimage.png" class="sectionimage"></img>
|
||||
href="#section3">3</a>. (Good footnote.)
|
||||
<img src="testimage.png" class="sectionimage"></img>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
@ -81,7 +83,8 @@ if (typeof gamebook !== 'undefined') {
|
|||
<div class="sectionnumber" id="para4">4</div>
|
||||
<div class="sectiontext">
|
||||
Very good. <a class="sectionref enabledlink" data-ref="3"
|
||||
href="#section3">You win</a>.
|
||||
href="#section3">You win</a>. (Win footnote.)
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
|
||||
|
||||
|
||||
\ql This starts another non-shuffled section. \
|
||||
\ql This starts another non-shuffled section. (A footnote in Another Heading.)
|
||||
\
|
||||
\
|
||||
|
||||
\b Adventure begins in section 1.
|
||||
|
@ -38,7 +39,8 @@
|
|||
\b0
|
||||
, otherwise turn to \b 3
|
||||
\b0
|
||||
.
|
||||
. (Good footnote.)
|
||||
|
||||
\
|
||||
\
|
||||
|
||||
|
@ -58,7 +60,8 @@
|
|||
\b 3
|
||||
\b0
|
||||
)
|
||||
. \
|
||||
. (Win footnote.)
|
||||
\
|
||||
\
|
||||
|
||||
\b \qc 5
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
|
||||
|
||||
\noindent
|
||||
This starts another non-shuffled section.
|
||||
This starts another non-shuffled section. \footnote{A footnote in Another Heading.}
|
||||
|
||||
\vspace{1em}
|
||||
|
||||
|
||||
|
@ -54,7 +55,8 @@ Adventure begins in section 1.
|
|||
|
||||
\noindent
|
||||
This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like \} and \{ and " and ' and \textbackslash. HTML will probably not like <div> or \&boom;. You can make named references like this (\textbf{\autoref{section5}})
|
||||
(just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to \textbf{\autoref{section2}}, otherwise turn to \textbf{\autoref{section3}}. \begin{center}
|
||||
(just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to \textbf{\autoref{section2}}, otherwise turn to \textbf{\autoref{section3}}.\footnote{Good footnote.}
|
||||
\begin{center}
|
||||
\includegraphics[width=.9\textwidth]{testimage.png}
|
||||
\end{center}
|
||||
|
||||
|
@ -83,7 +85,8 @@ Adventure begins in section 1.
|
|||
|
||||
\noindent
|
||||
Very good. You win (\textbf{\autoref{section3}})
|
||||
.
|
||||
.\footnote{Win footnote.}
|
||||
|
||||
\vspace{1em}
|
||||
\phantomsection
|
||||
\refstepcounter{sectionnr}
|
||||
|
|
|
@ -4,13 +4,15 @@ Introduction
|
|||
Adding an introduction to the gamebook here. This will create a section, but it will not be shuffled nor numbered with the gamebook sections below.
|
||||
|
||||
Another Heading
|
||||
This starts another non-shuffled section.
|
||||
This starts another non-shuffled section. (A footnote in Another Heading.)
|
||||
|
||||
|
||||
|
||||
|
||||
Adventure begins in section 1.
|
||||
1
|
||||
This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references like this (5) (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to 2, otherwise turn to 3.
|
||||
This examples tests gamebook formatting, not so much game mechanics or references. Currently there is nothing here really. This section contains some tricky characters to quote, like } and { and " and ' and \. HTML will probably not like <div> or &boom;. You can make named references like this (5) (just happens to be exactly the same syntax as in emacs org-mode btw). There should be an image below as well. If something broke, turn to 2, otherwise turn to 3. (Good footnote.)
|
||||
|
||||
|
||||
|
||||
2
|
||||
|
@ -20,7 +22,8 @@ Adventure begins in section 1.
|
|||
Good!
|
||||
|
||||
4
|
||||
Very good. You win (3).
|
||||
Very good. You win (3). (Win footnote.)
|
||||
|
||||
|
||||
5
|
||||
This is where you should end up when you follow the named reference from the starting section. From here you can go to the second named section (4) or to the good end (3).
|
||||
|
|
1
templates/DEFAULT/footnote.txt
Normal file
1
templates/DEFAULT/footnote.txt
Normal file
|
@ -0,0 +1 @@
|
|||
(%(inner)s)
|
1
templates/debug/footnote.debug
Normal file
1
templates/debug/footnote.debug
Normal file
|
@ -0,0 +1 @@
|
|||
[FOOTNOTE]%(inner)s[/FOOTNOTE]
|
1
templates/dot/footnote.dot
Normal file
1
templates/dot/footnote.dot
Normal file
|
@ -0,0 +1 @@
|
|||
|
1
templates/tex/footnote.tex
Normal file
1
templates/tex/footnote.tex
Normal file
|
@ -0,0 +1 @@
|
|||
\footnote{%(inner)s}
|
Loading…
Reference in a new issue