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:
parent
f5eb63be46
commit
ad1bbe65ae
2
Makefile
2
Makefile
|
@ -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 $< > $@
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
\author{}
|
||||
\date{}
|
||||
|
||||
\newcounter{sectionnr}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\thispagestyle{empty}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
\textbf{%(nr)d}
|
||||
\textbf{\autoref{section%(nr)d}}
|
4
todo.org
4
todo.org
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue