1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

LaTeX with cross-references.

Seems to work, but following links in PDF brings you to the top
of the section below the heading, sometimes meaning that the
number is not visible on screen. Also section headings could
perhaps have better layout with less empty space above and below.
This commit is contained in:
Pelle Nilsson 2013-06-04 00:57:45 +02:00
parent f5eb63be46
commit ad1bbe65ae
5 changed files with 9 additions and 5 deletions

View file

@ -16,7 +16,7 @@ all: test.rtf test.pdf test.html test.debug test.png
./formatgamebook.py $< $@
%.pdf: %.tex
pdflatex $<
pdflatex $< && pdflatex $<
%.png: %.dot
dot -Tpng $< > $@

View file

@ -20,6 +20,8 @@
\author{}
\date{}
\newcounter{sectionnr}
\begin{document}
\thispagestyle{empty}

View file

@ -1,4 +1,6 @@
\begin{center} \textbf{%(nr)d} \end{center}
\subsection*{\begin{center} \textbf{%(nr)d} \end{center}}
\refstepcounter{sectionnr}
\label{section%(nr)d}
\noindent
%(text)s

View file

@ -1 +1 @@
\textbf{%(nr)d}
\textbf{\autoref{section%(nr)d}}

View file

@ -1,4 +1,4 @@
* TODO [9/26] [34%]
* TODO [10/26] [38%]
- [X] Debug output
- [X] DOT output
- [X] LaTeX output
@ -9,7 +9,7 @@
- [X] Save section-number mapping and reuse automatically
- [X] Add support for custom document templates.
Fixed names and/or command-line options.
- [ ] Add section links in LaTeX output.
- [X] Add section links in LaTeX output.
- [ ] Debug HTML output
- [ ] Inventory pick up items
- [ ] Codewords set