mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 10:20:08 +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
|
MAKESPREADS := ../../scripts/make-spreads.sh
|
||||||
|
|
||||||
|
|
||||||
spreads.tex: spreads
|
spreads.tex: spreads $(wildcard spreads/*/*)
|
||||||
$(MAKESPREADS) $< $(SPREAD) > $@
|
$(MAKESPREADS) $< $(SPREAD) > $@
|
||||||
|
|
||||||
dist:
|
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
|
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.
|
built block .tex file will be located, usually to the project root.
|
||||||
|
|
||||||
|
Template field substitution is done as for all other templates.
|
||||||
|
|
||||||
|
|
||||||
### Templates
|
### Templates
|
||||||
|
|
||||||
|
|||||||
@ -479,7 +479,7 @@ populateTemplate(){
|
|||||||
i=$(( i + 1 ))
|
i=$(( i + 1 ))
|
||||||
|
|
||||||
val=${val//\//\\/}
|
val=${val//\//\\/}
|
||||||
text=$(echo -e "${text}" | \
|
text=$(echo "${text}" | \
|
||||||
sed "s/\${${var}}/${val%.*}/g")
|
sed "s/\${${var}}/${val%.*}/g")
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -502,7 +502,7 @@ populateTemplate(){
|
|||||||
val=$(readCaption "${val}")
|
val=$(readCaption "${val}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
text=$(echo -e "${text}" | \
|
text=$(echo "${text}" | \
|
||||||
sed "s/\${${var}}/${val}/g")
|
sed "s/\${${var}}/${val}/g")
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -523,13 +523,13 @@ populateTemplate(){
|
|||||||
done
|
done
|
||||||
|
|
||||||
val=${val//\//\\/}
|
val=${val//\//\\/}
|
||||||
text=$(echo -e "${text}" | \
|
text=$(echo "${text}" | \
|
||||||
sed "s/\${${var}}/${val}/g")
|
sed "s/\${${var}}/${val}/g")
|
||||||
done
|
done
|
||||||
|
|
||||||
# print out the filled template...
|
# print out the filled template...
|
||||||
echo % template: $tpl
|
echo % template: $tpl
|
||||||
echo -e "${text}"
|
echo "${text}"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user