mirror of
https://github.com/flynx/photobook.git
synced 2025-10-28 18:00:10 +00:00
added spread generation example...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
23c1fe9fe5
commit
021803c268
1
Makefile
1
Makefile
@ -123,6 +123,7 @@ BUILD_DIR := build
|
||||
DIST_NAME := $(MODULE)-$(VERSION)-$(DATE)
|
||||
DIST_DIR := dist
|
||||
DIST_FILES = \
|
||||
Makefile \
|
||||
$(wildcard scripts/*) \
|
||||
$(wildcard examples/*) \
|
||||
$(wildcard workflow/*) \
|
||||
|
||||
25
examples/spread generation/Makefile
Normal file
25
examples/spread generation/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
#
|
||||
# Example spread generator...
|
||||
#
|
||||
# Usage:
|
||||
# $ make
|
||||
#
|
||||
# To make a specifc spread (0-based index) use:
|
||||
# $ SPREAD=1 make
|
||||
#
|
||||
# For more info use:
|
||||
# make-images.sh --help
|
||||
#
|
||||
#
|
||||
|
||||
MAKESPREADS := ../../scripts/make-images.sh
|
||||
|
||||
|
||||
spreads.tex: spreads
|
||||
$(MAKESPREADS) $< $(SPREAD) > $@
|
||||
|
||||
clean:
|
||||
rm -f spreads.tex
|
||||
|
||||
all: spreads.tex
|
||||
|
||||
BIN
examples/spread generation/spreads/01/01.png
Normal file
BIN
examples/spread generation/spreads/01/01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 384 KiB |
1
examples/spread generation/spreads/01/02.txt
Normal file
1
examples/spread generation/spreads/01/02.txt
Normal file
@ -0,0 +1 @@
|
||||
Some text
|
||||
BIN
examples/spread generation/spreads/02/01.png
Normal file
BIN
examples/spread generation/spreads/02/01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 384 KiB |
BIN
examples/spread generation/spreads/02/02.png
Normal file
BIN
examples/spread generation/spreads/02/02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 384 KiB |
1
examples/spread generation/spreads/03/01.txt
Normal file
1
examples/spread generation/spreads/03/01.txt
Normal file
@ -0,0 +1 @@
|
||||
Some text
|
||||
1
examples/spread generation/spreads/03/02.txt
Normal file
1
examples/spread generation/spreads/03/02.txt
Normal file
@ -0,0 +1 @@
|
||||
Some text
|
||||
2
examples/spread generation/templates/blank-image.tex
Normal file
2
examples/spread generation/templates/blank-image.tex
Normal file
@ -0,0 +1,2 @@
|
||||
\cleardoublepage
|
||||
\ImagePage{${CAPTION0}}{${IMAGE0}}
|
||||
2
examples/spread generation/templates/image-blank.tex
Normal file
2
examples/spread generation/templates/image-blank.tex
Normal file
@ -0,0 +1,2 @@
|
||||
\ImagePage{${CAPTION0}}{${IMAGE0}}
|
||||
\emptypage
|
||||
2
examples/spread generation/templates/image-image.tex
Normal file
2
examples/spread generation/templates/image-image.tex
Normal file
@ -0,0 +1,2 @@
|
||||
\ImagePage{${CAPTION0}}{${IMAGE0}}
|
||||
\ImagePage{${CAPTION1}}{${IMAGE1}}
|
||||
1
examples/spread generation/templates/imagepage.tex
Normal file
1
examples/spread generation/templates/imagepage.tex
Normal file
@ -0,0 +1 @@
|
||||
\ImagePage{${CAPTION}}{${IMAGE}}
|
||||
7
examples/spread generation/templates/textpage.tex
Normal file
7
examples/spread generation/templates/textpage.tex
Normal file
@ -0,0 +1,7 @@
|
||||
\null
|
||||
\vfill
|
||||
\parbox{\TextBlockWidth\textwidth}{%
|
||||
\setlength{\parskip}{1em}
|
||||
\input{${TEXT}} }
|
||||
\vspace*{\TextBlockOffsetBottom\textheight}
|
||||
\newpage
|
||||
Loading…
x
Reference in New Issue
Block a user