mirror of
https://github.com/flynx/photobook.git
synced 2025-10-28 18:00:10 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e82f36717b
commit
8b594fd4e2
@ -15,7 +15,7 @@
|
||||
MAKESPREADS := ../../scripts/make-spreads.sh
|
||||
|
||||
|
||||
spreads.tex: spreads
|
||||
spreads.tex: spreads $(wildcard spreads/*/*)
|
||||
$(MAKESPREADS) $< $(SPREAD) > $@
|
||||
|
||||
dist:
|
||||
|
||||
BIN
examples/spread generation/spreads/06-maual-layout/01-img.png
Normal file
BIN
examples/spread generation/spreads/06-maual-layout/01-img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 384 KiB |
@ -0,0 +1,6 @@
|
||||
|
||||
Manual template
|
||||
|
||||
\newpage
|
||||
|
||||
\ImagePage{${CAPTION}}{${IMAGE}}
|
||||
@ -250,6 +250,8 @@ If `layout.tex` is present it will be included as the page layout/template.
|
||||
Any paths in the `layout.tex` should be relative to the location the
|
||||
built block .tex file will be located, usually to the project root.
|
||||
|
||||
Template field substitution is done as for all other templates.
|
||||
|
||||
|
||||
### Templates
|
||||
|
||||
|
||||
@ -479,7 +479,7 @@ populateTemplate(){
|
||||
i=$(( i + 1 ))
|
||||
|
||||
val=${val//\//\\/}
|
||||
text=$(echo -e "${text}" | \
|
||||
text=$(echo "${text}" | \
|
||||
sed "s/\${${var}}/${val%.*}/g")
|
||||
done
|
||||
|
||||
@ -502,7 +502,7 @@ populateTemplate(){
|
||||
val=$(readCaption "${val}")
|
||||
fi
|
||||
|
||||
text=$(echo -e "${text}" | \
|
||||
text=$(echo "${text}" | \
|
||||
sed "s/\${${var}}/${val}/g")
|
||||
done
|
||||
|
||||
@ -523,13 +523,13 @@ populateTemplate(){
|
||||
done
|
||||
|
||||
val=${val//\//\\/}
|
||||
text=$(echo -e "${text}" | \
|
||||
text=$(echo "${text}" | \
|
||||
sed "s/\${${var}}/${val}/g")
|
||||
done
|
||||
|
||||
# print out the filled template...
|
||||
echo % template: $tpl
|
||||
echo -e "${text}"
|
||||
echo "${text}"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user