Skip to content
Snippets Groups Projects
Commit 8c588eb2 authored by Martin Mareš's avatar Martin Mareš
Browse files

Typesetting the whole book (very rough)

parent c5834f8c
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
MAIN=ds
all: $(MAIN).pdf sync-view
$(MAIN).pdf: $(MAIN).tex chapters
ebook: chapters
include Makerules
CHAPTERS= \
01-prelim \
02-splay \
03-abtree \
04-heaps \
05-cache \
06-hash \
07-geom \
08-string
chapters:
for ch in $(CHAPTERS) ; do $(MAKE) -C $$ch pics ; done
for ch in $(CHAPTERS) ; do echo "\\includechapter{$$ch}" ; done >chapters.tex
clean::
for ch in $(CHAPTERS) $(EXTRAS) ; do $(MAKE) -C $$ch clean ; done
rm -f chapters.tex
.PHONY: chapters
......@@ -42,7 +42,7 @@ ifdef FULL_BOOK
$(LUATEX) -file-line-error -fmt $(TEXFMT) $<
$(TOOLS)/gen-index <index-raw.aux >index-sorted.aux
mv toc-new.aux toc.aux
[ ! -f $*.aux ] || bibtex $*
# [ ! -f $*.aux ] || bibtex $*
$(LUATEX) -file-line-error -fmt $(TEXFMT) $<
$(TOOLS)/gen-index <index-raw.aux >index-sorted.aux
mv toc-new.aux toc.aux
......
ds.tex 0 → 100644
\let\wholebook=\relax
\input adsmac.tex
%\debuggrid
%\debugindex
\def\includechapaux#1-#2@{\input #1-#2/#2.tex}
\def\includechapter#1{\includechapaux#1@}
\input chapters.tex
\bye
......@@ -409,6 +409,7 @@
}
\def\separatorpage#1{{
\vfill\supereject
%% \doubleeject
%% \barepage
%% \let\background=\separatorbackground
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment