minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-03-13 20:12:15 +03:00
parent e82f36717b
commit 8b594fd4e2
5 changed files with 13 additions and 5 deletions

View File

@ -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:

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

View File

@ -0,0 +1,6 @@
Manual template
\newpage
\ImagePage{${CAPTION}}{${IMAGE}}

View File

@ -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

View File

@ -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
} }