diff --git a/examples/book/Makefile b/examples/book/Makefile index 0713ae5..48ef46c 100644 --- a/examples/book/Makefile +++ b/examples/book/Makefile @@ -9,6 +9,8 @@ .DEFAULT_GOAL := all +#SHELL := bash + ifeq ($(DEBUG),) STDERR := > /dev/null endif @@ -79,6 +81,29 @@ spreads.tex: $(SPREAD_DIR) $(wildcard $(SPREAD_DIR)/*/*) $(TEMPLATE_FILES) block.pdf: $(SPREADS) +# XXX need to also include covers and endpapers (optionally?) +web.tex: setup.tex + { \ + echo "% This file is generated via make web.tex" \ + echo "% see the Makefile for info" \ + echo "% do not edit directly" \ + echo \ + echo "\input{setup}" \ + echo \ + echo "\setlength\bleed{0mm}" \ + echo "\setlength\bindingoffset{0mm}" \ + echo \ + echo "\ChangeLayout{endpaper}" \ + echo \ + echo "\pagecolor{black}" \ + echo \ + echo "\begin{document}" \ + echo "\includepdf[pages={{},1-}, nup=2x1, delta=0.3mm 0.3mm]{block}" \ + echo "\end{document}" \ + echo \ + } > $@ + + #---------------------------------------------------------------------- # production targets... diff --git a/examples/book/README.md b/examples/book/README.md index 5eb76bc..02c1f2f 100644 --- a/examples/book/README.md +++ b/examples/book/README.md @@ -1,79 +1,81 @@ -Full book example -================= - -This directory contains a full book example. - -``` -book/ -├── templates/ . . . . . . . . . . . . Templates used to buld spreads -│   └── ... (used by: make-spreads.sh) -├── spreads/ . . . . . . . . . . . . . Spread layout -│   └── ... (used by: make-spreads.sh) -├── captions/ . . . . . . . . . . . . . Image captions -│   └── ... (used by: make-spreads.sh) -├── hi-res/ . . . . . . . . . . . . . . High resolution graphics -│   └── ... (used by: make-spreads.sh) -├── Makefile -├── setup.tex . . . . . . . . . . . . . Book setup and configuration -│ This file contains all the book -│ geometry, colors and other -│ settings common to all comoponents -│ of the book. -├── block.tex . . . . . . . . . . . . . General page block layout. -├── spreads.tex . . . . . . . . . . . . Book spereads -│ (generated by: make-spreads.sh) -├── cover.tex -├── endpaper.tex -├── jacket.tex -└── ... -``` - -Note that this is by no means the only or most optomal project -structure, but it is a good enough starting point that evolved through -several, big and small project to start the next one from (at least -for me, subjectively). - - - -Building --------- - -To build all components: -```shell -$ make all -``` - -To build a specific component: -```shell -$ make block.pdf -``` - -`block.pdf` in this case. - - - - -Structure ---------- - -### `setup.tex` - -### `spreads.tex` - -### `cover.tex` / `jacket.tex` / `endpaper.tex` / .. - -### `web.tex` - - - -Workflow --------- - -XXX - - -For information about building spreads see: -[make-spreads.sh](../../scripts/README.md) - - - +Full book example +================= + +This directory contains a full book example. + +``` +book/ +├── templates/ . . . . . . . . . . . . Templates used to buld spreads +│   └── ... (used by: make-spreads.sh) +├── spreads/ . . . . . . . . . . . . . Spread layout +│   └── ... (used by: make-spreads.sh) +├── captions/ . . . . . . . . . . . . . Image captions +│   └── ... (used by: make-spreads.sh) +├── hi-res/ . . . . . . . . . . . . . . High resolution graphics +│   └── ... (used by: make-spreads.sh) +├── Makefile +├── setup.tex . . . . . . . . . . . . . Book setup and configuration +│ This file contains all the book +│ geometry, colors and other +│ settings common to all comoponents +│ of the book. +├── block.tex . . . . . . . . . . . . . General page block layout. +├── spreads.tex . . . . . . . . . . . . Book spereads +│ (generated by: make-spreads.sh) +├── cover.tex +├── endpaper.tex +├── jacket.tex +└── ... +``` + +Note that this is by no means the only or most optomal project +structure, but it is a good enough starting point that evolved through +several, big and small project to start the next one from (at least +for me, subjectively). + + + +Building +-------- + +To build all components: +```shell +$ make all +``` + +To build a specific component: +```shell +$ make block.pdf +``` + +`block.pdf` in this case. + + + + +Structure +--------- + +### `setup.tex` + +### `spreads.tex` + +### `cover.tex` / `jacket.tex` / `endpaper.tex` / .. + +### `web.tex` + + + + + +Workflow +-------- + +XXX + + +For information about building spreads see: +[make-spreads.sh](../../scripts/README.md) + + +